Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
* Update to `actions/checkout` v4 from v2.
* Switch to `dtolnay/rust-toolchain`.
  The old `actions-rs` actions haven't been maintained in years.
* Stop using `xargo` for `no_std` builds and use `cargo` instead.
  Also, use better targets that have no std library available for
  them.
  • Loading branch information
waywardmonkeys committed Nov 4, 2024
1 parent 45241f4 commit 60805e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
5 changes: 0 additions & 5 deletions .github/Xargo.toml

This file was deleted.

36 changes: 18 additions & 18 deletions .github/workflows/simba-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,30 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
components: clippy
- name: Check formatting
run: cargo clippy --all-features
build-native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: false
- name: Build --no-default-feature
run: cargo build --no-default-features;
- name: Build libm only
Expand All @@ -52,22 +50,24 @@ jobs:
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- name: build
run: cargo build --verbose --target wasm32-unknown-unknown;
build-no-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
- name: install xargo
run: cp .github/Xargo.toml .; rustup component add rust-src; cargo install -f xargo;
- name: build x86_64-unknown-linux-gnu
run: xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu;
- name: build x86_64-unknown-linux-gnu --features libm
run: xargo build --verbose --no-default-features --features libm --target=x86_64-unknown-linux-gnu;
toolchain: stable
targets: "x86_64-unknown-none,thumbv7em-none-eabihf"
- name: build x86_64-unknown-none
run: cargo build --verbose --no-default-features --target=x86_64-unknown-none
- name: build x86_64-unknown-none --features libm
run: cargo build --verbose --no-default-features --features libm --target=x86_64-unknown-none
- name: build thumbv7em-none-eabihf
run: cargo build --verbose --no-default-features --target=thumbv7em-none-eabihf
- name: build thumbv7em-none-eabihf --features libm
run: cargo build --verbose --no-default-features --features libm --target=thumbv7em-none-eabihf

0 comments on commit 60805e1

Please sign in to comment.