Use LLVM 20 by default for now #185
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Test whether we can link to LLVM installed from apt.llvm.org or Homebrew. | |
| --- | |
| name: Test | |
| on: [push, pull_request] | |
| jobs: | |
| test-macos: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| llvm: [14, 15, 16, 17, 18, 19, 20, 21] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| # Optional step when a LLVM version is very new. | |
| - name: Update Homebrew | |
| run: brew update | |
| - name: Install LLVM | |
| run: HOMEBREW_NO_AUTO_UPDATE=1 brew install llvm@${{ matrix.llvm }} | |
| - name: Test LLVM ${{ matrix.llvm }} | |
| run: | |
| go test -v -tags=llvm${{ matrix.llvm }} | |
| - name: Test default LLVM | |
| if: matrix.llvm == 20 | |
| run: | |
| go test -v | |
| test-linux: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| llvm: [14, 15, 16, 17, 18, 19, 20, 21] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Install LLVM | |
| run: | | |
| echo 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ 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 == 20 | |
| run: | |
| go test -v | |
| test-linux-fedora: | |
| # Fedora uses different paths than other systems, so testing it separately. | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| llvm: [19, 20, 21] | |
| container: fedora:43 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies (default LLVM) | |
| if: matrix.llvm == 21 | |
| run: dnf install --assumeyes g++ golang llvm-devel | |
| - name: Install dependencies (older LLVM) | |
| if: matrix.llvm != 21 | |
| run: dnf install --assumeyes g++ golang llvm${{ matrix.llvm }}-devel | |
| - name: Test LLVM ${{ matrix.llvm }} | |
| run: | |
| go test -v -tags=llvm${{ matrix.llvm }} | |
| - name: Test default LLVM | |
| if: matrix.llvm == 20 | |
| run: | |
| go test -v |