Skip to content

Commit b54a0b3

Browse files
committed
Merge #835: 11.x: fix CI
5e6e870 clippy: fix all lints (Andrew Poelstra) 64df1ea clippy: fix most lints (Andrew Poelstra) 6db4bd3 cargo: whilelist the `bench` cfg flag for the unexpected_cfg lint (Andrew Poelstra) 0061520 modernize rustfmt::skip syntax and run cargo fmt (Andrew Poelstra) f50ce03 ci: fix broken and redundant doc links (Andrew Poelstra) 0fd22d4 ci: set all runners to ubuntu-latest (Andrew Poelstra) dfee005 ci: pin nightly version (Andrew Poelstra) 99de5ca ci: pin dependencies using lockfile rather than ad-hoc cargo updates (Andrew Poelstra) Pull request description: Should get us green CI, and pins the nightly compiler version so that it stays green. ACKs for top commit: sanket1729: reACK 5e6e870. Tree-SHA512: 49def6b838d3b1f462a1c1568409c4c8e48680f970d6967feb540742be9516520bec63c6fdd628843f126eb054d392044e5ce43c0bd1271af3450e26a80ca981
2 parents 9ae0172 + 5e6e870 commit b54a0b3

32 files changed

+739
-204
lines changed

.github/workflows/fuzz.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
fuzz:
1313
if: ${{ !github.event.act }}
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
strategy:
1616
fail-fast: false
1717
matrix:
@@ -28,8 +28,8 @@ roundtrip_semantic,
2828
steps:
2929
- name: Install test dependencies
3030
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
31-
- uses: actions/checkout@v2
32-
- uses: actions/cache@v2
31+
- uses: actions/checkout@v4
32+
- uses: actions/cache@v4
3333
id: cache-fuzz
3434
with:
3535
path: |
@@ -45,7 +45,7 @@ roundtrip_semantic,
4545
- name: fuzz
4646
run: cd fuzz && ./fuzz.sh "${{ matrix.fuzz_target }}"
4747
- run: echo "${{ matrix.fuzz_target }}" >executed_${{ matrix.fuzz_target }}
48-
- uses: actions/upload-artifact@v2
48+
- uses: actions/upload-artifact@v4
4949
with:
5050
name: executed_${{ matrix.fuzz_target }}
5151
path: executed_${{ matrix.fuzz_target }}
@@ -55,8 +55,8 @@ roundtrip_semantic,
5555
needs: fuzz
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@v2
59-
- uses: actions/download-artifact@v2
58+
- uses: actions/checkout@v4
59+
- uses: actions/download-artifact@v4
6060
- name: Display structure of downloaded files
6161
run: ls -R
6262
- run: find executed_* -type f -exec cat {} + | sort > executed

.github/workflows/rust.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,29 @@ on: [push, pull_request]
33
name: Continuous integration
44

55
jobs:
6+
Prepare:
7+
runs-on: ubuntu-latest
8+
outputs:
9+
nightly_version: ${{ steps.read_toolchain.outputs.nightly_version }}
10+
steps:
11+
- name: "Checkout repo"
12+
uses: actions/checkout@v4
13+
- name: "Read nightly version"
14+
id: read_toolchain
15+
run: echo "nightly_version=$(cat nightly-version)" >> $GITHUB_OUTPUT
16+
617
Nightly:
718
name: Nightly - Bench + Docs + Fmt
19+
needs: Prepare
820
runs-on: ubuntu-latest
921
steps:
1022
- name: Checkout Crate
11-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
1224
- name: Checkout Toolchain
1325
uses: actions-rs/toolchain@v1
1426
with:
1527
profile: minimal
16-
toolchain: nightly
28+
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
1729
override: true
1830
- name: Running benchmarks
1931
env:
@@ -33,7 +45,7 @@ jobs:
3345
runs-on: ubuntu-latest
3446
steps:
3547
- name: Checkout Crate
36-
uses: actions/checkout@v2
48+
uses: actions/checkout@v4
3749
- name: Checkout Toolchain
3850
uses: actions-rs/toolchain@v1
3951
with:
@@ -47,17 +59,18 @@ jobs:
4759

4860
Tests:
4961
name: Tests
62+
needs: Prepare
5063
runs-on: ubuntu-latest
5164
strategy:
5265
matrix:
5366
include:
5467
- rust: stable
5568
- rust: beta
56-
- rust: nightly
69+
- rust: ${{ needs.Prepare.outputs.nightly_version }}
5770
- rust: 1.48
5871
steps:
5972
- name: Checkout Crate
60-
uses: actions/checkout@v2
73+
uses: actions/checkout@v4
6174
- name: Checkout Toolchain
6275
uses: actions-rs/toolchain@v1
6376
with:
@@ -71,22 +84,23 @@ jobs:
7184
run: ./contrib/test.sh
7285

7386
Embedded:
87+
needs: Prepare
7488
runs-on: ubuntu-latest
7589
steps:
7690
- name: Checkout
77-
uses: actions/checkout@v2
91+
uses: actions/checkout@v4
7892
- name: Set up QEMU
7993
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
8094
- name: Checkout Toolchain
8195
uses: actions-rs/toolchain@v1
8296
with:
8397
profile: minimal
84-
toolchain: nightly
98+
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
8599
override: true
86100
components: rust-src
87101
target: thumbv7m-none-eabi
88102
- name: Run
89103
env:
90104
RUSTFLAGS: "-C link-arg=-Tlink.x"
91105
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
92-
run: cd embedded && cargo run --target thumbv7m-none-eabi --release
106+
run: cp Cargo-recent.lock Cargo.lock && cd embedded && cargo run --target thumbv7m-none-eabi --release

0 commit comments

Comments
 (0)