Skip to content

ci: merge Linux tests into one job using a matrix #110

ci: merge Linux tests into one job using a matrix

ci: merge Linux tests into one job using a matrix #110

Workflow file for this run

# Test whether we can link to LLVM installed from apt.llvm.org or Homebrew.
---
name: Test
on: [push, pull_request]
jobs:
test-macos-llvm-14:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: |
brew update
brew install llvm@14
- name: Test LLVM 14
run:
go test -v -tags=llvm14
test-macos-llvm-15:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: |
brew update
brew install llvm@15
- name: Test LLVM 15
run:
go test -v -tags=llvm15
test-macos-llvm-16:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: |
brew update
brew install llvm@16
- name: Test LLVM 16
run:
go test -v -tags=llvm16
- name: Test default LLVM
run:
go test -v
test-macos-llvm-17:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: |
brew update
brew install llvm@17
- name: Test LLVM 17
run:
go test -v -tags=llvm17
test-linux:
runs-on: ubuntu-20.04
strategy:
matrix:
llvm: [14, 15, 16, 17]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: |
echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-${{ matrix.llvm }} main' | sudo tee /etc/apt/sources.list.d/llvm.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install --no-install-recommends llvm-${{ matrix.llvm }}-dev
- name: Test LLVM ${{ matrix.llvm }}
run:
go test -v -tags=llvm${{ matrix.llvm }}
- name: Test default LLVM
if: matrix.llvm == 16
run:
go test -v