Update the Ubuntu image for CI jobs to 24.04 since the old one is deprecated #73
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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test for LLVM ${{ matrix.llvm }} | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| llvm: | |
| - 9 | |
| - 10 | |
| - 11 | |
| - 12 | |
| - 13 | |
| - 14 | |
| - 15 | |
| - 16 | |
| - 17 | |
| - 18 | |
| - 19 | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v3 | |
| - name: Install libtinfo | |
| run: sudo apt-get update && sudo apt-get install -y libtinfo5 | |
| - name: Install LLVM ${{ matrix.llvm }} | |
| uses: KyleMayes/install-llvm-action@v2 | |
| with: | |
| version: ${{ matrix.llvm }} | |
| - name: llvm-config | |
| run: llvm-config --version --bindir --libdir | |
| - name: Install zstd | |
| run: sudo apt-get install -y libzstd-dev | |
| if: matrix.llvm >= 16 | |
| - name: Install Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| - name: Build Debug | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| # LLVM 11 doesn't work with strict-versioning, see #53 | |
| args: ${{ format('--features=llvm-{0}{1}', matrix.llvm, matrix.llvm != '11' && ',strict-versioning' || '') }} | |
| - name: Build Release | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| # LLVM 11 doesn't work with strict-versioning, see #53 | |
| args: ${{ format('--release --features=llvm-{0}{1}', matrix.llvm, matrix.llvm != '11' && ',strict-versioning' || '') }} | |
| - name: Test Release | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: ${{ format('--release --features=llvm-{0}{1}', matrix.llvm, matrix.llvm != '11' && ',strict-versioning' || '') }} | |
| # LLVM 19 tests should pass with a debug build, now that https://github.com/llvm/llvm-project/issues/65227 | |
| # and https://github.com/llvm/llvm-project/pull/87163 have landed in a release | |
| - name: Test Debug | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features=llvm-${{ matrix.llvm }} | |
| if: matrix.llvm >= 19 |