Skip to content

Commit

Permalink
chore: add gnullvm cross check to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Nov 10, 2024
1 parent 6aa771c commit c2ee332
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,42 @@ jobs:
command: test
args: --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }}

cross-windows-gnullvm-check:
name: Check ${{ matrix.manifest }} to ${{ matrix.rust_target }} with ${{ matrix.rust_toolchain }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust_target:
- aarch64-pc-windows-gnullvm
- i686-pc-windows-gnullvm
- x86_64-pc-windows-gnullvm
manifest: ["psm/Cargo.toml", "Cargo.toml"]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
env:
LLVM_MINGW_VERSION: "20241030"
with:
path: llvm-mingw-version
key: ${{ env.LLVM_MINGW_VERSION }}
- name: Install llvm-mingw
if: steps.cache.outputs.cache-hit != 'true'
run: curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${{ env.LLVM_MINGW_VERSION }}/llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-20.04-x86_64.tar.xz | tar xJf -
- name: Add llvm-mingw to PATH
run: echo "${{ github.workspace }}/llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-20.04-x86_64/bin" >> $GITHUB_PATH
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.rust_target }}
- name: Build
uses: actions-rs/cargo@v1
with:
command: check
args: --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }}

cross-linux-test:
name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with nightly ${{ matrix.mode }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit c2ee332

Please sign in to comment.