From 9fe2bd4088be13d46ae76ecedb32e4ab7b0d442b Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 7 Sep 2023 16:34:22 -0400 Subject: [PATCH] Use -Z build-std in CI --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7176bd0..578ad8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,11 +68,12 @@ jobs: if: matrix.build == 'zigbuild' run: pip install ziglang==0.10.1.post1 cargo-zigbuild==0.17.0 - name: Setup Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@nightly with: + components: rust-src targets: ${{ matrix.target }} - name: Cargo build - run: cargo ${{ matrix.build }} --release --all-features --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} + run: cargo ${{ matrix.build }} --release --all-features --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} -Z build-std=std,panic_abort - name: Upload artifacts uses: actions/upload-artifact@v3 with: