Skip to content

Commit

Permalink
Change how rust target works
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 3, 2024
1 parent 70536c5 commit 5cc4883
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ jobs:
- arch: x64
sys: clang64
env: clang-x86_64
rust_target: x86_64-pc-windows-msvc
- arch: x86
sys: clang32
env: clang-i686
rust_target: i686-pc-windows-msvc
steps:
- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -122,7 +120,13 @@ jobs:
- name: Build
shell: msys2 {0}
run: |
make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON RUST_TARGET=${{ matrix.rust_target }}
if [ ${{ matrix.arch }} = x64 ]; then
export RUST_TARGET=x86_64-pc-windows-msvc
else
export RUST_TARGET=i686-pc-windows-msvc
fi
rustup target add $RUST_TARGET
make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
make check
- name: Does it work sans msys2?
run: |
Expand Down

0 comments on commit 5cc4883

Please sign in to comment.