This repository was archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) · 1.31 KB
/
dh-code.yml
File metadata and controls
36 lines (31 loc) · 1.31 KB
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
name: DH Code Verification
on:
push:
jobs:
build-verify:
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: ghcr.io/viperproject/gobra@sha256:1513175b6b66dcdb73042fbcb0bc3fa511c716cbf65ec318e25171283975b955
env:
VERIFAST_VERSION: 18.02
steps:
- name: Install prerequisites
run: apt-get update && apt-get install -y git curl tar libgomp1
- name: Checkout repo
uses: actions/checkout@v2
- name: Verify DH initiator in Go using Gobra
run: |
mkdir -p .gobra
java -Xss128m -jar /gobra/gobra.jar \
--module "dh-gobra" \
--include verification --include . \
--directory initiator
working-directory: dh/go-implementation
- name: Verify DH responder in Java using VeriFast
run: |
curl -q -s -S -L --create-dirs -o VeriFast.zip https://github.com/verifast/verifast/releases/download/${{ env.VERIFAST_VERSION }}/verifast-${{ env.VERIFAST_VERSION }}-linux.tar.gz
tar xzf VeriFast.zip
# this creates a folder called `verifast-${{ env.VERIFAST_VERSION }}`
VERIFAST_PATH="$PWD/verifast-${{ env.VERIFAST_VERSION }}/bin/verifast"
$VERIFAST_PATH -allow_assume -c dh/java-implementation/src/main/java/dhgobra/responder/Responder.jarsrc