Skip to content

Commit

Permalink
Tweak MacOS CI to find LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed May 17, 2024
1 parent f2a6e6d commit f2a6f12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ jobs:

- name: Get the LLVM version (Mac Only)
if: ${{ matrix.os == 'macos-latest' }}
# run: ${{ matrix.llvm-install-dir }}/bin/llvm-config --version
run: llvm-config --version
run: ${{ matrix.llvm-install-dir }}/bin/llvm-config --version
# For some reason, this seems to error even when llvm-config is available somewhere. Leaving it in for now.
continue-on-error: true

Expand All @@ -85,8 +84,8 @@ jobs:
- name: Run cargo check (Mac Only)
if: ${{ matrix.os == 'macos-latest' }}
run: cargo check
# env:
# LLVM_SYS_180_PREFIX: ${{ matrix.llvm-install-dir }}
env:
LLVM_SYS_180_PREFIX: ${{ matrix.llvm-install-dir }}

- name: Run cargo check (Ubuntu & Windows)
if: ${{ matrix.os != 'macos-latest' }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/cargo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ jobs:

- name: Get the LLVM version (Mac Only)
if: ${{ matrix.os == 'macos-latest' }}
# run: ${{ matrix.llvm-install-dir }}/bin/llvm-config --version
run: llvm-config --version
run: ${{ matrix.llvm-install-dir }}/bin/llvm-config --version
# For some reason, this seems to error even when llvm-config is available somewhere. Leaving it in for now.
continue-on-error: true

Expand All @@ -87,8 +86,8 @@ jobs:
- name: Run cargo test (Mac Only)
if: ${{ matrix.os == 'macos-latest' }}
run: cargo test
# env:
# LLVM_SYS_180_PREFIX: ${{ matrix.llvm-install-dir }}
env:
LLVM_SYS_180_PREFIX: ${{ matrix.llvm-install-dir }}

- name: Run cargo test (Ubuntu & Windows)
if: ${{ matrix.os != 'macos-latest' }}
Expand Down

0 comments on commit f2a6f12

Please sign in to comment.