Skip to content

Commit 17d9210

Browse files
committed
Update llvm.yml
1 parent 4188a4a commit 17d9210

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/llvm.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
id: cache-llvm-16
2020
with:
2121
path: |
22-
/usr/local/opt/llvm
22+
/usr/local/opt/llvm@16/
2323
2424
/usr/local/Cellar/llvm/
2525
key: ${{ runner.os }}-llvm-16
@@ -44,16 +44,20 @@ jobs:
4444
~/Library/Caches/deno
4545
- name: Install LLVM and Clang
4646
if: ${{ steps.cache-llvm-16.outputs.cache-hit!= 'true' }}
47-
run: brew install llvm@16
48-
- name: install
47+
run: |
48+
brew install llvm@16
49+
export PATH="/usr/local/opt/llvm@16/bin:$PATH"
50+
export LDFLAGS="-L/usr/local/opt/llvm@16/lib"
51+
export CPPFLAGS="-I/usr/local/opt/llvm@16/include"
4952
53+
- name: install
5054
run: |
5155
brew install xmake python@3.11 six z3 zstd
5256
5357
brew install libtool automake
54-
export LDFLAGS="-L/usr/local/opt/llvm/lib"
55-
export CPPFLAGS="-I/usr/local/opt/llvm/include"
56-
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile
58+
export LDFLAGS="-L/usr/local/opt/llvm@16/lib"
59+
export CPPFLAGS="-I/usr/local/opt/llvm@16/include"
60+
echo 'export PATH="/usr/local/opt/llvm@16/bin:$PATH"' >> /Users/runner/.bash_profile
5761
5862
- name: vcpkg-action
5963

@@ -74,11 +78,11 @@ jobs:
7478
xmake-version: branch@dev
7579
actions-cache-folder: ".xmake-cache"
7680
- run: xmake l install.lua
77-
- run: deno run -A xmake.ts --mode=test --group=test --toolchain=llvm --sdk=/usr/local/opt/llvm/
81+
- run: deno run -A xmake.ts --mode=test --group=test --toolchain=llvm --sdk=/usr/local/opt/llvm@16/
7882
- run: xmake clean -a
79-
- run: xmake f --toolchain=llvm --sdk=/usr/local/opt/llvm/ -y -v --project=. "--file=./xmake.lua"
83+
- run: xmake f --toolchain=llvm --sdk=/usr/local/opt/llvm@16/ -y -v --project=. "--file=./xmake.lua"
8084
- run: xmake build -v -y -w --project=. "--file=./xmake.lua"
8185
- run: xmake clean -a
82-
- run: xmake f --toolchain=llvm --sdk=/usr/local/opt/llvm/ -y -v --project=. "--file=./xmake.lua" --mode=test
86+
- run: xmake f --toolchain=llvm --sdk=/usr/local/opt/llvm@16/ -y -v --project=. "--file=./xmake.lua" --mode=test
8387
- run: xmake build -v -y -w --project=. "--file=./xmake.lua" --group=test
8488
- run: xmake run --group=test

0 commit comments

Comments
 (0)