From 4f7cb4b54e1b25e7a66e1033d9d8bf7bff02d214 Mon Sep 17 00:00:00 2001 From: OpenByte Date: Tue, 30 Dec 2025 14:40:15 +0000 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 49 +++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6fe1bd..7cb0442 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: