diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 4bdf2a8ac36..9bb1d99c1a3 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -394,7 +394,6 @@ jobs: - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , features: "feat_os_unix,test_risky_names", use-cross: use-cross, skip-publish: true } - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , features: "feat_os_unix,openssl,uudoc" , use-cross: no, workspace-tests: true, pgo: PGO } - { os: ubuntu-latest , target: x86_64-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross } - - { os: ubuntu-latest , target: x86_64-unknown-netbsd, features: "feat_os_unix", use-cross: use-cross , skip-tests: true , check-only: true } - { os: ubuntu-latest , target: x86_64-unknown-illumos , default-features: false, features: "feat_os_unix_illumos", use-cross: use-cross , check-only: true } - { os: ubuntu-latest , target: wasm32-wasip1, default-features: false, features: feat_wasm, skip-tests: true } - { os: ubuntu-latest , target: wasm32-wasip2, default-features: false, features: feat_wasm, skip-tests: true } @@ -522,16 +521,9 @@ jobs: esac outputs CARGO_TEST_OPTIONS - uses: taiki-e/install-action@v2 - # `cross` v0.2.5 lacks `libexecinfo` on NetBSD. However, this has been added in main. - # See https://github.com/cross-rs/cross/blob/main/docker/netbsd.sh - # We are pulling cross from a specific commit hash rather than HEAD to avoid any potential breakage that may be introduced. - # Once `cross` v0.3 is out, these conditionals can be removed. - if: steps.vars.outputs.CARGO_CMD == 'cross' && matrix.job.target != 'x86_64-unknown-netbsd' + if: steps.vars.outputs.CARGO_CMD == 'cross' with: tool: cross@0.2.5 - - name: Install cross from git (NetBSD) - if: steps.vars.outputs.CARGO_CMD == 'cross' && matrix.job.target == 'x86_64-unknown-netbsd' - run: cargo install cross --git https://github.com/cross-rs/cross --rev f86fd03bb70b4c6802847c18087e21391498b0b4 - name: Create all needed build/work directories shell: bash run: | diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 6264afba364..cf808b8f556 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -1,7 +1,7 @@ name: Code Quality -# spell-checker:ignore (people) juliangruber pell reactivecircus taiki-e taplo -# spell-checker:ignore (misc) TERMUX noaudio pkill swiftshader esac pcoreutils shopt subshell dequote libsystemd wasi wasip +# spell-checker:ignore (people) juliangruber mlugg pell reactivecircus taiki-e taplo +# spell-checker:ignore (misc) TERMUX noaudio pkill swiftshader esac pcoreutils shopt subshell dequote libsystemd wasi wasip zigbuild on: pull_request: @@ -80,6 +80,7 @@ jobs: - { os: ubuntu-latest , features: feat_os_unix_redox , target: x86_64-unknown-redox } - { os: ubuntu-latest , features: feat_wasm , target: wasm32-wasip1 } - { os: ubuntu-latest , features: feat_wasm , target: wasm32-wasip2 } + - { os: ubuntu-latest , features: feat_os_unix , target: x86_64-unknown-netbsd , cargo: cargo-zigbuild } steps: - uses: actions/checkout@v7.0.1 with: @@ -99,6 +100,10 @@ jobs: run: | echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV + - uses: mlugg/setup-zig@v2.2.1 + if: matrix.job.cargo == 'cargo-zigbuild' + - uses: taiki-e/install-action@cargo-zigbuild + if: matrix.job.cargo == 'cargo-zigbuild' - name: Install/setup prerequisites if: ${{ ! matrix.job.target }} shell: bash @@ -116,7 +121,7 @@ jobs: run: | test ${{ matrix.job.uu }} && UTILS=$(cargo tree --depth 1 --features ${{ matrix.job.features }} --format '{lib}' --prefix none | sed -n 's/^uu_/-p uu_/p') ARGS="--no-default-features ${FEATURE_ARG} ${WORKSPACE_ARG} ${{ matrix.job.arg }} ${UTILS}" - cargo clippy ${ARGS} -- -D warnings + ${{ matrix.job.cargo || 'cargo' }} clippy ${ARGS} -- -D warnings - name: "cargo clippy on fuzz dir" if: runner.os != 'Windows' && !matrix.job.target shell: bash