Skip to content

Commit 54043fd

Browse files
authored
Update and rename c-cpp.yml to llvm.yml
1 parent ce48a6f commit 54043fd

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/c-cpp.yml renamed to .github/workflows/llvm.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: C/C++ CI
1+
name: llvm
22

33
on:
44
push:
@@ -15,6 +15,14 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18+
- uses: actions/cache@v3
19+
id: cache-llvm-16
20+
with:
21+
path: |
22+
/usr/local/opt/llvm
23+
24+
/usr/local/Cellar/llvm/
25+
key: ${{ runner.os }}-llvm-16
1826
- uses: actions/cache@v3
1927
with:
2028
path: |
@@ -34,26 +42,18 @@ jobs:
3442
path: |
3543
~/.deno
3644
~/Library/Caches/deno
37-
45+
- name: Install LLVM and Clang
46+
47+
if: ${{ steps.cache-llvm-16.outputs.cache-hit!= 'true' }}
48+
run: brew install llvm@16
3849
- name: install
3950

4051
run: |
41-
42-
brew install llvm@16
43-
52+
brew install xmake python@3.11 six z3 zstd
4453
brew install xmake
45-
4654
brew install libtool automake
47-
48-
49-
50-
51-
export LDFLAGS="-L/usr/local/opt/llvm/lib"
52-
55+
export LDFLAGS="-L/usr/local/opt/llvm/lib"
5356
export CPPFLAGS="-I/usr/local/opt/llvm/include"
54-
55-
56-
5757
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile
5858
5959
- name: vcpkg-action

0 commit comments

Comments
 (0)