ci: pin nightly in current CI

This commit is contained in:
Andrew Poelstra 2024-02-20 14:56:37 +00:00
parent c97f2ccc69
commit 85ead84a99
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
2 changed files with 14 additions and 3 deletions

1
.github/nightly-version vendored Normal file
View File

@ -0,0 +1 @@
nightly-2024-02-18

View File

@ -13,9 +13,13 @@ jobs:
outputs: outputs:
crates: ${{ steps.get_matrix.outputs.crates }} crates: ${{ steps.get_matrix.outputs.crates }}
deps: ${{ steps.get_matrix.outputs.deps }} deps: ${{ steps.get_matrix.outputs.deps }}
nightly_version: ${{ steps.read_toolchain.outputs.nightly_version }}
steps: steps:
- name: Checkout Crate - name: Checkout Crate
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Read nightly version
id: read_toolchain
run: echo "nightly_version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
- name: Prepare tests - name: Prepare tests
id: get_matrix id: get_matrix
run: contrib/get_matrix.sh run: contrib/get_matrix.sh
@ -75,7 +79,9 @@ jobs:
- name: Checkout Crate - name: Checkout Crate
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Checkout Toolchain - name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
- name: Install clippy - name: Install clippy
run: rustup component add clippy run: rustup component add clippy
- name: Set dependencies - name: Set dependencies
@ -139,6 +145,7 @@ jobs:
run: cross test --target s390x-unknown-linux-gnu run: cross test --target s390x-unknown-linux-gnu
Embedded: Embedded:
needs: Prepare
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
RUSTFLAGS: "-C link-arg=-Tlink.x" RUSTFLAGS: "-C link-arg=-Tlink.x"
@ -149,8 +156,9 @@ jobs:
- name: Set up QEMU - name: Set up QEMU
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
- name: Checkout Toolchain - name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
targets: thumbv7m-none-eabi targets: thumbv7m-none-eabi
- name: Install src - name: Install src
run: rustup component add rust-src run: rustup component add rust-src
@ -175,7 +183,9 @@ jobs:
- name: Checkout Crate - name: Checkout Crate
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Checkout Toolchain - name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
- name: Install src - name: Install src
run: rustup component add rust-src run: rustup component add rust-src
- name: Running address sanitizer - name: Running address sanitizer