forked from chyanju/Picus
-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (58 loc) · 1.94 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
container:
image: veridise/picus:git-latest
steps:
- uses: actions/checkout@v1
- run: ls /root/.local/share/racket/8.6/pkgs
test-solve-with-z3:
runs-on: ubuntu-latest
container:
image: veridise/picus:git-latest
steps:
- uses: actions/checkout@v1
- name: linking circom
run: ln -s /root/.cargo/bin/circom /usr/bin/circom
- name: compile circomlib
run: bash ./scripts/prepare-circomlib.sh
- name: run picus with z3, using v3
run: racket ./picus-dpvl-uniqueness.rkt --solver z3 --r1cs ./benchmarks/circomlib-cff5ab6/[email protected] --weak
test-solve-with-cvc5:
runs-on: ubuntu-latest
container:
image: veridise/picus:git-latest
steps:
- uses: actions/checkout@v1
- name: linking circom
run: ln -s /root/.cargo/bin/circom /usr/bin/circom
- name: compile circomlib
run: bash ./scripts/prepare-circomlib.sh
- name: run picus with cvc5, using v3
run: racket ./picus-dpvl-uniqueness.rkt --solver cvc5 --r1cs ./benchmarks/circomlib-cff5ab6/[email protected] --weak
publish-docker:
needs: [test-solve-with-z3, test-solve-with-cvc5]
name: "Publish Docker image to DockerHub"
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push to DockerHub
uses: docker/build-push-action@v3
with:
push: true
file: Dockerfile
tags: veridise/picus:git-latest, veridise/picus:git-${{ github.sha }}