Skip to content

Commit ce06f6b

Browse files
committed
x
1 parent 56ca1bd commit ce06f6b

File tree

1 file changed

+4
-48
lines changed

1 file changed

+4
-48
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,15 @@ name: Test
66
on: [push, pull_request]
77

88
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
569
test-windows:
5710
runs-on: windows-latest
5811
steps:
5912
- name: Checkout
6013
uses: actions/checkout@v2
6114
- name: Install Tools
6215
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
6420

0 commit comments

Comments
 (0)