forked from crystal-lang/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.76 KB
/
llvm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: LLVM CI
on: [push, pull_request]
permissions: {}
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, codename: jammy}
- {llvm_version: 14, runs-on: ubuntu-22.04, codename: jammy}
- {llvm_version: 15, runs-on: ubuntu-22.04, codename: jammy}
- {llvm_version: 16, runs-on: ubuntu-22.04, codename: jammy}
- {llvm_version: 17, runs-on: ubuntu-24.04, codename: noble}
- {llvm_version: 18, runs-on: ubuntu-24.04, codename: noble}
- {llvm_version: 19, runs-on: ubuntu-24.04, codename: noble}
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 -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository -y deb http://apt.llvm.org/${{ matrix.codename }}/ llvm-toolchain-${{ matrix.codename }}-${{ matrix.llvm_version }} main
sudo apt install -y llvm-${{ matrix.llvm_version }}-dev lld
- 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