-
Notifications
You must be signed in to change notification settings - Fork 19
211 lines (154 loc) · 5.55 KB
/
amd64-linux-main.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
name: amd64-linux-main
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
compile:
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: enter nix shell
run: nix --experimental-features 'nix-command flakes' develop
- name: compile
run: make -j$JOBS -C src/ CI=1 default
- name: print logs
run: make -C src/ CI=1 reporter
- name: return error if there are any errors
run: make -C src/ CI=1 err
- name: libjade-logs-src.tar.gz - contains non-empty logs and errors
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-logs-src.tar.gz
path: src/libjade-logs-src.tar.gz
test:
needs: [compile]
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: enter nix shell
run: nix --experimental-features 'nix-command flakes' develop
- name: enter nix shell
uses: workflow/nix-shell-action@v3
with:
flake: .#easycrypt
script: |
# compile and run
make -j$JOBS -C test/ CI=1 default
- name: print logs
run: make -C test/ CI=1 reporter
- name: return error if there are any errors
run: make -C test/ CI=1 err
- name: libjade-logs-test.tar.gz - contains non-empty logs and errors
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-logs-test.tar.gz
path: test/libjade-logs-test.tar.gz
bench1:
needs: [compile]
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: enter nix shell
run: nix --experimental-features 'nix-command flakes' develop
- name: compile
run: make -j$JOBS -C src/ CI=1 default
- name: run
run: make -j$JOBS -C bench/ CI=1 DEFINE='-DTIMINGS=10' run
- name: print logs
run: make -C bench/ CI=1 reporter
- name: return error if there are any errors
run: make -C bench/ CI=1 err
- name: libjade-logs-bench.tar.gz - contains non-empty logs and errors
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-logs-bench1.tar.gz
path: bench/libjade-logs-bench.tar.gz
bench2:
needs: [compile]
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: enter nix shell
run: nix --experimental-features 'nix-command flakes' develop
- name: compile
run: make -j$JOBS -C src/ CI=1 default
- name: run
run: make -j$JOBS -C bench/ CI=1 run DEFINE='-DTIMINGS=10 -DRUNS=2 -DST_ON' RANDINC='../test/common/' RANDLIB='../test/common/notrandombytes.c';
- name: print logs
run: make -C bench/ CI=1 reporter
- name: return error if there are any errors
run: make -C bench/ CI=1 err
- name: libjade-logs-bench.tar.gz - contains non-empty logs and errors
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-logs-bench2.tar.gz
path: bench/libjade-logs-bench.tar.gz
proof-extracted:
needs: [test]
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: enter nix shell
run: |
nix --experimental-features 'nix-command flakes' develop '.#easycrypt-github'
echo "easycrypt:$EASYCRYPT"
echo "ecargs:$ECARGS"
env
- name: extract and check
run: make -j$JOBS -C proof/ CI=1 check-extracted
- name: dist
run: ./scripts/ci/releaser/jdist-proof
- name: print logs
run: make -C proof/ CI=1 reporter
- name: return error if there are any errors
run: make -C proof/ CI=1 err
- name: libjade-logs-proof.tar.gz - contains non-empty logs and errors
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-logs-proof.tar.gz
path: proof/libjade-logs-proof.tar.gz
- name: libjade-dist-proof.tar.gz - contains all EasyCrypt files and test.config
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-dist-proof.tar.gz
path: libjade-dist-proof.tar.gz
dist-amd64:
needs: [compile]
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: enter nix shell
run: nix --experimental-features 'nix-command flakes' develop
- name: compile amd64
run: make -j$JOBS -C src/ CI=1 default
- name: dist amd64
run: ./scripts/ci/releaser/jdist-src-v1 amd64
- name: check dist amd64
run: ./scripts/ci/releaser/jdist-src-test-v1 amd64
- name: libjade-dist-src-amd64.tar.gz - contains assembly, Jasmin, and how-to-use code
if: always()
uses: actions/upload-artifact@v3
with:
name: libjade-dist-src-amd64.tar.gz
path: libjade-dist-src-amd64.tar.gz