Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 31 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,22 @@ jobs:
- name: Test
run: cargo test --target ${{ matrix.target }} --all-targets --no-fail-fast --no-default-features --features "nethost-download $("net" + "${{ matrix.dotnet }}".replace(".", "_"))" -- --nocapture
shell: pwsh
cross:

arm-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: ["beta"]
target: ["aarch64-unknown-linux-gnu", "armv7-unknown-linux-gnueabihf"]

steps:
- uses: actions/checkout@v6

- name: Install latest ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}

- name: Install cross
# temporary fix, see cross-rs/cross#1561
run: RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross

- name: Build
run: cross build --target ${{ matrix.target }}
- uses: actions/checkout@v6
- name: Install latest rust nightly for ${{ matrix.target }}
uses: dtolnay/rust-toolchain@nightly
with:
targets: ${{ matrix.target }}
- name: Check main crate
run: cargo check --target ${{ matrix.target }} --all-features

examples:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,7 +118,28 @@ jobs:
env:
RUSTFLAGS: -Z export-executable-symbols
run: cargo run --example ${{ matrix.example }}


hack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install latest nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: cargo hack
run: cargo hack --feature-powerset check

machete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install latest nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo install cargo-machete
uses: taiki-e/install-action@cargo-machete
- run: cargo machete

documentation:
runs-on: ${{ matrix.os }}-latest
strategy:
Expand Down