Skip to content

Commit

Permalink
ci: switch to arm64 hosted runners (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel authored Feb 3, 2025
1 parent 9400a34 commit 0bc98cc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ updates:
schedule:
interval: "daily"
ignore:
- dependency-name: "dtolnay/install"
- dependency-name: "dtolnay/rust-toolchain"
4 changes: 2 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
run:
name: Bench
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -40,7 +40,7 @@ jobs:
deploy:
name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
needs: run
environment:
name: benchmark-results
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ permissions:
jobs:
rustdoc:
name: Rustdoc
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
id: rust-toolchain
- uses: dtolnay/install@cargo-docs-rs
- run: cargo install --locked cargo-docs-rs
- run: cargo docs-rs
- run: mv "target/$(rustc -vV | awk '/^host/ { print $2 }')/doc" "target/doc"
- run: chmod -c -R +rX "target/doc"
Expand All @@ -31,7 +31,7 @@ jobs:
deploy:
name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
needs: rustdoc
environment:
name: github-pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
release:
name: Release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
environment:
name: crates-io
steps:
Expand All @@ -35,7 +35,7 @@ jobs:

pr:
name: PR
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
Expand Down
25 changes: 11 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ permissions:
jobs:
msrv:
name: Minimum supported Rust version
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install --locked cargo-expand
- uses: dtolnay/[email protected]
id: rust-toolchain
- uses: dtolnay/install@master
with:
crate: cargo-expand
- uses: actions/cache@v4
with:
path: |
Expand All @@ -37,16 +36,15 @@ jobs:

check:
name: Check
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install --locked cargo-expand
- uses: dtolnay/rust-toolchain@stable
id: rust-toolchain
with:
components: clippy, rustfmt
- uses: dtolnay/install@master
with:
crate: cargo-expand
- uses: actions/cache@v4
with:
path: |
Expand All @@ -72,7 +70,7 @@ jobs:

miri:
name: Miri
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@miri
Expand All @@ -96,19 +94,18 @@ jobs:

coverage:
name: Coverage
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
env:
RUSTFLAGS: "-C instrument-coverage"
RUSTDOCFLAGS: "-C instrument-coverage"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install --locked cargo-expand
- uses: dtolnay/rust-toolchain@stable
id: rust-toolchain
with:
components: llvm-tools-preview
- uses: dtolnay/install@master
with:
crate: cargo-expand
- uses: actions/cache@v4
with:
path: |
Expand All @@ -127,7 +124,7 @@ jobs:
env:
LLVM_PROFILE_FILE: "narrow-%p-%m.profraw"
- name: Install grcov
run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-aarch64-unknown-linux-gnu.tar.bz2 | tar jxf -
- name: grcov
run: ./grcov --branch --binary-path ./target/debug/ --source-dir . --output-type lcov --output-path lcov.info .
- uses: codecov/codecov-action@v5
Expand Down

0 comments on commit 0bc98cc

Please sign in to comment.