Skip to content

Use official Apt respositories for LLVM CI #4200

Use official Apt respositories for LLVM CI

Use official Apt respositories for LLVM CI #4200

Workflow file for this run

name: LLVM CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
SPEC_SPLIT_DOTS: 160
jobs:
llvm_test:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- llvm_version: 13
runs-on: ubuntu-22.04
- llvm_version: 14
runs-on: ubuntu-22.04
- llvm_version: 15
runs-on: ubuntu-22.04
- llvm_version: 16
runs-on: ubuntu-22.04
- llvm_version: 17
runs-on: ubuntu-24.04
- llvm_version: 18
runs-on: ubuntu-24.04
- llvm_version: 19
runs-on: ubuntu-24.04
name: "LLVM ${{ matrix.llvm_version }}"
steps:
- name: Checkout Crystal source
uses: actions/checkout@v4
- name: Install LLVM ${{ matrix.llvm_version }}
run: |
sudo apt remove llvm-* libllvm*
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.llvm_version }}
sudo apt install -y llvm-${{ matrix.llvm_version }}-dev lld-${{ matrix.llvm_version }}
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: "1.14.0"
- name: Build libllvm_ext
run: make -B deps
- name: Test compiler_spec
run: make compiler_spec junit_output=.junit/compiler_spec.xml
- name: Integration test
run: make crystal std_spec threads=1 junit_output=.junit/std_spec.xml