File tree Expand file tree Collapse file tree 1 file changed +4
-48
lines changed Expand file tree Collapse file tree 1 file changed +4
-48
lines changed Original file line number Diff line number Diff line change @@ -6,59 +6,15 @@ name: Test
6
6
on : [push, pull_request]
7
7
8
8
jobs :
9
- test-macos :
10
- runs-on : macos-latest
11
- strategy :
12
- matrix :
13
- llvm : [14, 15, 16, 17]
14
- go-version : [1.18.x, 1.21.x]
15
-
16
- steps :
17
- - name : Checkout
18
- uses : actions/checkout@v2
19
- - name : Update Homebrew
20
- if : matrix.llvm == 17 # needed as long as LLVM 17 is still fresh
21
- run : brew update
22
- - name : Set up Go
23
- uses : actions/setup-go@v5
24
- with :
25
- go-version : ${{ matrix.go-version }}
26
- - name : Install LLVM
27
- run : HOMEBREW_NO_AUTO_UPDATE=1 brew install llvm@${{ matrix.llvm }}
28
- - name : Test LLVM ${{ matrix.llvm }}
29
- run :
30
- go test -v -tags=llvm${{ matrix.llvm }}
31
- - name : Test default LLVM
32
- if : matrix.llvm == 17
33
- run :
34
- go test -v
35
- test-linux :
36
- runs-on : ubuntu-latest
37
- strategy :
38
- matrix :
39
- llvm : [14, 15, 16, 17]
40
- steps :
41
- - name : Checkout
42
- uses : actions/checkout@v2
43
- - name : Install LLVM
44
- run : |
45
- echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-${{ matrix.llvm }} main' | sudo tee /etc/apt/sources.list.d/llvm.list
46
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
47
- sudo apt-get update
48
- sudo apt-get install --no-install-recommends llvm-${{ matrix.llvm }}-dev
49
- - name : Test LLVM ${{ matrix.llvm }}
50
- run :
51
- go test -v -tags=llvm${{ matrix.llvm }}
52
- - name : Test default LLVM
53
- if : matrix.llvm == 17
54
- run :
55
- go test -v
56
9
test-windows :
57
10
runs-on : windows-latest
58
11
steps :
59
12
- name : Checkout
60
13
uses : actions/checkout@v2
61
14
- name : Install Tools
62
15
run :
63
- choco install --confirm git golang mingw make cmake ninja python
16
+ wget https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.6/llvm-18.1.6.src.tar.xz
17
+ tar xJF llvm-18.1.6.src.tar.xz
18
+ ls
19
+ mv llvm-18.1.6 llvm
64
20
You can’t perform that action at this time.
0 commit comments