72
72
- if : ${{ startsWith(matrix.os, 'macos-') }}
73
73
run : |
74
74
brew install llvm
75
- echo 'export PATH="/ opt/homebrew/opt/llvm/bin:$PATH" ' >> " $GITHUB_ENV"
76
- echo 'export LIBCLANG_PATH=/ opt/homebrew/opt/llvm' >> " $GITHUB_ENV"
75
+ echo 'LIBCLANG_PATH=${{ (matrix.os == 'macos-13' && '/usr/local') || '/ opt/homebrew' }} /opt/llvm/lib ' >> $GITHUB_ENV
76
+ echo 'LLVM_CONFIG_PATH=${{ (matrix.os == 'macos-13' && '/usr/local') || '/ opt/homebrew' }} /opt/llvm/bin/llvm-config ' >> $GITHUB_ENV
77
77
- uses : dtolnay/rust-toolchain@master
78
78
id : toolchain
79
79
with :
@@ -474,8 +474,8 @@ jobs:
474
474
- if : ${{ startsWith(matrix.os, 'macos-') }}
475
475
run : |
476
476
brew install llvm
477
- echo 'export PATH="/ opt/homebrew/opt/llvm/bin:$PATH"'
478
- echo 'export LIBCLANG_PATH=/ opt/homebrew/opt/llvm' >> " $GITHUB_ENV"
477
+ echo 'LIBCLANG_PATH=${{ (matrix.os == 'macos-13' && '/usr/local') || '/ opt/homebrew' }} /opt/llvm/lib' >> $GITHUB_ENV
478
+ echo 'LLVM_CONFIG_PATH=${{ (matrix.os == 'macos-13' && '/usr/local') || '/ opt/homebrew' }} /opt/llvm/bin/llvm-config ' >> $GITHUB_ENV
479
479
- name : Set Rust toolchain override
480
480
run : rustup override set ${{ steps.toolchain.outputs.name }}
481
481
- name : Install cargo-careful
@@ -495,9 +495,6 @@ jobs:
495
495
if : github.repository_owner == 'aws'
496
496
name : Clang 19.1 + bindgen tests
497
497
runs-on : macos-14-xlarge
498
- env :
499
- LIBCLANG_PATH : /opt/homebrew/opt/llvm/lib
500
- LLVM_CONFIG_PATH : /opt/homebrew/opt/llvm/llvm-config
501
498
steps :
502
499
- uses : actions/checkout@v4
503
500
with :
@@ -513,7 +510,8 @@ jobs:
513
510
brew update
514
511
brew uninstall --force llvm
515
512
brew install llvm@19
516
- echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> "$GITHUB_ENV"
513
+ echo 'LIBCLANG_PATH=/opt/homebrew/opt/llvm@19/lib' >> $GITHUB_ENV
514
+ echo 'LLVM_CONFIG_PATH=/opt/homebrew/opt/llvm@19/bin/llvm-config' >> $GITHUB_ENV
517
515
- name : aws-lc-sys bindgen build
518
516
working-directory : ./aws-lc-sys
519
517
run : cargo test --features bindgen
0 commit comments