Skip to content

Commit 7815a35

Browse files
committed
Use workarounds to install llvm-19
1 parent 904749c commit 7815a35

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

.github/workflows/linux.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ name: Linux Build
55

66
on:
77
push:
8-
# branches: [ "main" ]
8+
# branches: ["main"]
99
paths:
1010
- "include/**"
1111
- "src/**"
1212
- "test/**"
1313
- "CMakeLists.txt"
1414
- ".github/workflows/linux.yml"
1515
pull_request:
16-
branches: [ "main" ]
16+
branches: ["main"]
1717
paths:
1818
- "include/**"
1919
- "src/**"
@@ -35,13 +35,13 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737

38-
- name: Install static analyzers
38+
- name: Install build tools
3939
run: >-
40-
sudo apt-get install clang-tidy-19 ninja-build -y -q
40+
sudo apt-get install ninja-build -y -q
4141
42-
sudo update-alternatives --install
43-
/usr/bin/clang-tidy clang-tidy
44-
/usr/bin/clang-tidy-19 140
42+
wget https://apt.llvm.org/llvm.sh
43+
chmod +x llvm.sh
44+
sudo sudo ./llvm.sh 19 # all
4545
4646
- name: Linux ${{ matrix.compiler }} ${{ matrix.sanitizer }}
4747
run: CXX=${{ matrix.compiler }} make ${{ matrix.sanitizer }}

.github/workflows/macos.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ name: Macos Build
55

66
on:
77
push:
8-
# branches: [ "main" ]
8+
# branches: ["main"]
99
paths:
1010
- "include/**"
1111
- "src/**"
1212
- "test/**"
1313
- "CMakeLists.txt"
1414
- ".github/workflows/macos.yml"
1515
pull_request:
16-
branches: [ "main" ]
16+
branches: ["main"]
1717
paths:
1818
- "include/**"
1919
- "src/**"
@@ -39,14 +39,19 @@ jobs:
3939
# if: startsWith(matrix.compiler, 'clang')
4040
uses: aminya/setup-cpp@v1
4141
with:
42-
compiler: llvm-19
42+
# TODO: compiler: llvm-19
4343
# clangtidy: true
4444
# cmake: true
4545
ninja: true
4646

47-
- name: macos clang++-19 ${{ matrix.sanitizer }}
47+
- name: Install llvm-19
4848
if: startsWith(matrix.compiler, 'clang')
49-
run: CXX=$(brew --prefix llvm@19)/bin/clang++ make ${{ matrix.sanitizer }}
49+
run: >-
50+
brew install llvm-19 | echo ignored
51+
52+
- name: macos clang++-18 ${{ matrix.sanitizer }}
53+
if: startsWith(matrix.compiler, 'clang')
54+
run: CXX=$(brew --prefix llvm@18)/bin/clang++ make ${{ matrix.sanitizer }}
5055

5156
- name: macos g++ ${{ matrix.sanitizer }}
5257
if: startsWith(matrix.compiler, 'g++')

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ name: Windows Build
55

66
on:
77
push:
8-
# branches: [ "main" ]
8+
# branches: ["main"]
99
paths:
1010
- "include/**"
1111
- "src/**"
1212
- "test/**"
1313
- "CMakeLists.txt"
1414
- ".github/workflows/windows.yml"
1515
pull_request:
16-
branches: [ "main" ]
16+
branches: ["main"]
1717
paths:
1818
- "include/**"
1919
- "src/**"

0 commit comments

Comments
 (0)