diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 56d82d2..ab26dda 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,7 +22,7 @@ jobs: targets: ${{ matrix.target }} components: rustfmt - name: Build - run: cargo build -v -F regenerate --target ${{ matrix.target }} + run: cargo build -vv -F regenerate --target ${{ matrix.target }} - name: Extract architecture from target triple and move bindings shell: bash run: | @@ -49,13 +49,15 @@ jobs: cp "$GENERATED_BINDING" "src/ffi/${ARCH}_bindgen.rs" echo "Moved $GENERATED_BINDING to src/ffi/${ARCH}_bindgen.rs" - - name: Run tests - run: cargo test -v -F regenerate --target ${{ matrix.target }} - name: Upload generated file as artifact uses: actions/upload-artifact@v4 with: name: ${{ env.ARCH }}_bindgen.rs path: src/ffi/${{ env.ARCH }}_bindgen.rs + - name: Run tests + if: ${{ matrix.target }} == 'x86_64-pc-windows-msvc' + run: cargo test -vv + commit-and-push: runs-on: ubuntu-latest needs: bindgen