-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
85 lines (69 loc) · 2.3 KB
/
interpreter.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Interpreter Test
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
SPEC_SPLIT_DOTS: 160
jobs:
test-interpreter_spec:
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.12.1-build
name: "Test Interpreter"
steps:
- uses: actions/checkout@v4
- name: Test interpreter_spec
run: make interpreter_spec junit_output=.junit/interpreter_spec.xml
build-interpreter:
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.12.1-build
name: Build interpreter
steps:
- uses: actions/checkout@v4
- name: Build compiler
run: make interpreter=1 release=1
- name: Upload compiler artifact
uses: actions/upload-artifact@v4
with:
name: crystal-interpreter
path: |
.build/crystal
test-interpreter-std_spec:
needs: build-interpreter
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.12.1-build
strategy:
matrix:
part: [0, 1, 2, 3]
name: "Test std_spec with interpreter (${{ matrix.part }})"
steps:
- uses: actions/checkout@v4
- name: Download compiler artifact
uses: actions/download-artifact@v4
with:
name: crystal-interpreter
path: .build/
- name: Mark downloaded compiler as executable
run: chmod +x .build/crystal
- name: Run std_spec with interpreter
run: SPEC_SPLIT="${{ matrix.part }}%4" bin/crystal i spec/std_spec.cr -- --junit_output .junit/interpreter-std_spec.${{ matrix.part }}.xml
test-interpreter-primitives_spec:
needs: build-interpreter
runs-on: ubuntu-22.04
container:
image: crystallang/crystal:1.11.2-build
name: "Test primitives_spec with interpreter"
steps:
- uses: actions/checkout@v4
- name: Download compiler artifact
uses: actions/download-artifact@v4
with:
name: crystal-interpreter
path: .build/
- name: Mark downloaded compiler as executable
run: chmod +x .build/crystal
- name: Run primitives_spec with interpreter
run: bin/crystal i spec/primitives_spec.cr -- --junit_output .junit/interpreter-primitives_spec.xml