Skip to content

Commit

Permalink
Specify llvm dir without spaces on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Mar 17, 2024
1 parent 0d689f4 commit 574bf13
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ jobs:
check:
strategy:
matrix:
os: ["windows-latest", "ubuntu-latest"]
include:
- os: windows-latest
llvm-dir: C:/LLVM
- os: ubuntu-latest
llvm-dir: ./llvm
# macos does not support LLVM 17.

runs-on: ${{ matrix.os }}
env:
working-directory: ./wright
Expand All @@ -16,19 +22,16 @@ jobs:
id: cache-llvm
uses: actions/cache@v3
with:
path: |
C:/Program Files/LLVM
./llvm
path: ${{ matrix.llvm_dir }}
key: llvm-17
- name: Install LLVM
uses: KyleMayes/install-llvm-action@v1
with:
version: "17"
directory: ${{ matrix.llvm_dir }}
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Check LLVM version
run: llvm-config --version
- name: Check rust code
run: cargo check
env:
LLVM_SYS_170_PREFIX: ${{ env.LLVM_PATH }}
run: cargo check
working-directory: ${{env.working-directory}}

0 comments on commit 574bf13

Please sign in to comment.