-
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (39 loc) · 945 Bytes
/
Linux.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
name: Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- name: Setup
run: |
cmake . -DCMAKE_BUILD_TYPE=Debug
- name: Compile
run: cmake --build . --config Debug
- name: Run tests
run: ./bin/blc -run doctor.bl
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- name: Setup
run: |
cmake . -DCMAKE_BUILD_TYPE=Release -DBL_ASSERT_ENABLE=ON
- name: Compile
run: cmake --build . --config Release
- name: Run tests
run: ./bin/blc -run doctor.bl