mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-03 10:46:48 +01:00
Check release build profile in CI
So far, CI did not check the code in the `release` build profile, which could result in some things not getting caught. To fix this, we now implement a new CI job that runs checks in the `release` profile. Switch to stable toolchain.
This commit is contained in:
parent
0fc2036f76
commit
c21593db99
1 changed files with 21 additions and 0 deletions
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
|
@ -275,6 +275,27 @@ jobs:
|
|||
- name: For each commit, run cargo check (including in fuzz)
|
||||
run: ci/check-each-commit.sh upstream/main
|
||||
|
||||
check_release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TOOLCHAIN: stable
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ env.TOOLCHAIN }}
|
||||
override: true
|
||||
profile: minimal
|
||||
- name: Run cargo check for release build.
|
||||
run: |
|
||||
cargo check --release
|
||||
cargo check --no-default-features --features=no-std --release
|
||||
cargo doc --release
|
||||
|
||||
fuzz:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
|
|
Loading…
Add table
Reference in a new issue