Skip to content

Commit

Permalink
ci: only run tests for x86_64-pc-windows-msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich authored Jan 2, 2025
1 parent 06ce83e commit d9aa6cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit d9aa6cd

Please sign in to comment.