-
Notifications
You must be signed in to change notification settings - Fork 21
47 lines (39 loc) · 1.14 KB
/
tests.yml
File metadata and controls
47 lines (39 loc) · 1.14 KB
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
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
name: Test debug ll generation
jobs:
test-debug-ll-generation:
runs-on: [ubuntu-22.04]
timeout-minutes: 90
env:
LLVM_VERSION: 18
steps:
- uses: actions/checkout@v3
- name: Check if CMakeLists.txt is in sync with our LLVM_VERSION
run: |
grep -q "set(DEBUGIR_LLVM_VERSION $LLVM_VERSION" CMakeLists.txt
- name: Check if README is in sync with our LLVM_VERSION
run: |
grep -q "LLVM-$LLVM_VERSION" README.md
- name: install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh $LLVM_VERSION
- name: build debugir
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
cmake --build .
- name: generate hello.ll
run: |
cd test-files
clang-$LLVM_VERSION -emit-llvm -o hello.ll -S hello.c
- name: test generating hello dbg ll
run: |
./build/debugir ./test-files/hello.ll
test -e ./test-files/hello.dbg.ll