From c4d1aab8851215a6d78009fe2bb6b4c27d8b3a1d Mon Sep 17 00:00:00 2001 From: Akuli Date: Tue, 14 Jan 2025 13:06:51 +0200 Subject: [PATCH] Add LLVM 15 to github actions, except on windows --- .github/workflows/linux.yml | 6 ++++-- .github/workflows/macos.yml | 12 ++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 3446952c..48b079ce 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - llvm-version: [11, 13, 14] + llvm-version: [11, 13, 14, 15] # Testing all levels because there was a bug that only happened with -O1. (#224) opt-level: ['-O0', '-O1', '-O2', '-O3'] steps: @@ -70,9 +70,11 @@ jobs: steps: - uses: actions/checkout@v3 - run: sudo apt update - - run: sudo apt install -y llvm-{11,13,14}-dev clang-{11,13,14} make + - run: sudo apt install -y llvm-{11,13,14,15}-dev clang-{11,13,14,15} make - run: LLVM_CONFIG=llvm-config-11 ./doctest.sh - run: make clean - run: LLVM_CONFIG=llvm-config-13 ./doctest.sh - run: make clean - run: LLVM_CONFIG=llvm-config-14 ./doctest.sh + - run: make clean + - run: LLVM_CONFIG=llvm-config-15 ./doctest.sh diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index dbd4565b..7b1a2446 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -12,11 +12,15 @@ jobs: matrix: # Testing all levels because there was a bug that only happened with -O1. (#224) opt-level: ['-O0', '-O1', '-O2', '-O3'] + llvm-version: ['14', '15'] + env: + LLVM_CONFIG: "/usr/local/opt/llvm@${{ matrix.llvm-version }}/bin/llvm-config" steps: - uses: actions/checkout@v3 - - run: brew install bash diffutils llvm@14 - - - run: make + - run: brew install bash diffutils llvm@${{ matrix.llvm-version }} + - name: "Select LLVM version" + run: | + echo "LLVM_CONFIG=/usr/local/opt/llvm@${{ matrix.llvm-version }}/bin/llvm-config" >> $GITHUB_ENV - name: "Compile and test stage 1 compiler" run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }}" --stage1 - name: "Compile and test stage 2 compiler" @@ -40,5 +44,5 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v3 - - run: brew install bash diffutils llvm@14 + - run: brew install bash diffutils llvm@15 - run: ./doctest.sh