-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.29 KB
/
ci.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
name: Crypto Proofs Check
on: [push,pull_request]
env:
HOME: /home/charlie
OPAMYES: true
OPAMJOBS: 2
jobs:
pre_job:
name: Check for Duplicates Jobs
runs-on: ubuntu-20.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- uses: fkirc/skip-duplicate-actions@v5
id: skip_check
with:
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'
easycrypt:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: Compile & Cache EasyCrypt
runs-on: ubuntu-20.04
container:
image: ghcr.io/easycrypt/ec-build-box
steps:
- uses: actions/checkout@v4
- name: Compile & Cache EasyCrypt
uses: ./.github/actions/easycrypt
project:
name: Compile Project
needs: easycrypt
runs-on: ubuntu-20.04
container:
image: ghcr.io/easycrypt/ec-build-box
strategy:
fail-fast: false
matrix:
target: [ [ 'ci-test', 'config/tests.config', 'all' ] ]
steps:
- uses: actions/checkout@v4
- name: Compile & Cache EasyCrypt
uses: ./.github/actions/easycrypt
- name: Compile project
working-directory: ${{ matrix.target[0] }}
run: opam exec -- easycrypt runtest ${{ matrix.target[1] }} ${{ matrix.target[2] }}