Skip to content

Commit

Permalink
Add LLVM 15 to github actions, except on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jan 14, 2025
1 parent 3252912 commit c4d1aab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
12 changes: 8 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit c4d1aab

Please sign in to comment.