-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (43 loc) · 1.38 KB
/
csmith.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
53
name: Csmith
on:
schedule:
- cron: '0 2 * * 1'
jobs:
csmith:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: MarkusJx/[email protected]
- name: Cache LLVM
id: cache-llvm
uses: actions/cache@v3
with:
path: llvm-clang.tar.gz
key: ${{ runner.os }}-llvm-clang
- name: Unpack LLVM
run: sudo chmod ugo+rwx llvm-clang.tar.gz && tar -xvf llvm-clang.tar.gz -C . > /dev/null
- name: Install csmith
run: |
cd ..
git clone https://github.com/csmith-project/csmith.git
cd csmith
cmake -DCMAKE_INSTALL_PREFIX=csmith .
make
- name: Generating tests
run: |
cd ./project/scripts
python3 csmith.py -h
python3 csmith.py ../tests/main/csmith -c 100
- name: Testing
run: |
cd ./project/scripts
python3 transpile.py -h
python3 transpile.py ../tests/main/csmith -n
- name: Clean test directory
run: cd ./project/scripts && python3 clean_before_transpilation.py -p ../tests/main/csmith
- name: Make archive from csmith tests
run: tar -cf csmith.tar.gz ./project/tests/main/csmith
- uses: actions/upload-artifact@v3
with:
name: csmith
path: csmith.tar.gz