-
-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (39 loc) · 1.13 KB
/
tests.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
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone latest JuleC
run: |
git clone https://github.com/julelang/jule.git
- name: Get latest IR
run: |
curl -o ./jule/ir.cpp https://raw.githubusercontent.com/julelang/julec-ir/main/src/linux-amd64.cpp
- name: Compile JuleC
run: |
mkdir ./jule/bin
clang++ -O0 --std=c++17 -Wno-everything -o ./jule/bin/julec ./jule/ir.cpp
git update-index --add --chmod=-x ./jule/bin/julec
chmod +x ./jule/bin/julec
- name: JuleC Version
run: |
./jule/bin/julec version
- name: Compile Tests
run: |
./jule/bin/julec -t .
clang++ -O0 --std=c++17 -Wno-everything -o ./tests ./dist/ir.cpp
git update-index --add --chmod=-x ./tests
chmod +x ./tests
- name: Run Tests
run: |
./tests
- name: Cleanup
run: |
rm -f tests