Skip to content

Commit a0cfcf0

Browse files
wip: src/ Makefiles cleanup + workflow to check src/ with Dockerfile in scripts/Docker
1 parent 33e9ffb commit a0cfcf0

File tree

10 files changed

+598
-202
lines changed

10 files changed

+598
-202
lines changed

.github/workflows/amd64-linux.yml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: amd64-linux
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
12+
# extract src
13+
extract-src:
14+
runs-on: [self-hosted, linux, X64, amd64-main]
15+
steps:
16+
- name: checkout
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: 'true'
20+
21+
- name: extract src from submodules
22+
run: ./scripts/extract-all.sh
23+
24+
# src
25+
check-safety:
26+
needs: extract-src
27+
runs-on: [self-hosted, linux, X64, amd64-main]
28+
steps:
29+
- name: checkout
30+
uses: actions/checkout@v4
31+
32+
- name: check safety
33+
run: make -j$JOBS -C src/ CI=1 check-safety
34+
- name: print report
35+
run: make -C src/ CI=1 reporter
36+
- name: return error
37+
run: make -C src/ CI=1 err
38+
39+
check-sct:
40+
needs: extract-src
41+
runs-on: [self-hosted, linux, X64, amd64-main]
42+
steps:
43+
- name: checkout
44+
uses: actions/checkout@v4
45+
46+
- name: check speculative constant-time (v1)
47+
run: make -j$JOBS -C src/ CI=1 check-sct
48+
- name: print report
49+
run: make -C src/ CI=1 reporter
50+
- name: return error
51+
run: make -C src/ CI=1 err
52+
53+
extract-to-easycrypt:
54+
needs: extract-src
55+
runs-on: [self-hosted, linux, X64, amd64-main]
56+
steps:
57+
- name: checkout
58+
uses: actions/checkout@v4
59+
60+
- name: check extraction from Jasmin to EasyCrypt
61+
run: make -j$JOBS -C src/ CI=1 extract-to-easycrypt
62+
- name: print report
63+
run: make -C src/ CI=1 reporter
64+
- name: return error
65+
run: make -C src/ CI=1 err
66+
67+
compile-src:
68+
needs: extract-src
69+
runs-on: [self-hosted, linux, X64, amd64-main]
70+
steps:
71+
- name: checkout
72+
uses: actions/checkout@v4
73+
74+
- name: check compilation of libformosa25519.a
75+
run: make -j$JOBS -C src/ CI=1 libformosa25519.a
76+
- name: print report
77+
run: make -C src/ CI=1 reporter
78+
- name: return error
79+
run: make -C src/ CI=1 err
80+
81+

0 commit comments

Comments
 (0)