Skip to content

Commit

Permalink
ci: use prepared rust-version instead of stable for all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Dec 17, 2024
1 parent 173cc42 commit 1755480
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
run: echo "rust_version=$(cat rust-version)" >> $GITHUB_OUTPUT

build-test:
needs: prepare
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- version: stable
- version: ${{ needs.prepare.outputs.rust_version }}
clippy: true
- version: 1.63.0 # MSRV
features:
Expand Down Expand Up @@ -60,6 +61,7 @@ jobs:
run: cargo test --workspace --exclude 'example_*' ${{ matrix.features }}

check-no-std:
needs: prepare
name: Check no_std
runs-on: ubuntu-latest
steps:
Expand All @@ -68,7 +70,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ needs.prepare.outputs.rust_version }}
override: true
profile: minimal
# target: "thumbv6m-none-eabi"
Expand All @@ -88,6 +90,7 @@ jobs:
run: cargo check --no-default-features --features miniscript/no-std,bdk_chain/hashbrown

check-wasm:
needs: prepare
name: Check WASM
runs-on: ubuntu-20.04
env:
Expand All @@ -103,7 +106,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ needs.prepare.outputs.rust_version }}
override: true
profile: minimal
target: "wasm32-unknown-unknown"
Expand All @@ -117,6 +120,7 @@ jobs:
run: cargo check --target wasm32-unknown-unknown --no-default-features --features miniscript/no-std,bdk_chain/hashbrown,async

fmt:
needs: prepare
name: Rust fmt
runs-on: ubuntu-latest
steps:
Expand All @@ -125,7 +129,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ needs.prepare.outputs.rust_version }}
override: true
profile: minimal
components: rustfmt
Expand Down Expand Up @@ -153,6 +157,7 @@ jobs:
args: --all-features --all-targets -- -D warnings

build-examples:
needs: prepare
name: Build & Test Examples
runs-on: ubuntu-latest
strategy:
Expand All @@ -172,7 +177,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ needs.prepare.outputs.rust_version }}
override: true
profile: minimal
- name: Rust Cache
Expand Down

0 comments on commit 1755480

Please sign in to comment.