Skip to content

Commit

Permalink
Merge pull request #25 from formosa-crypto/add-to-external-ci
Browse files Browse the repository at this point in the history
Added files to allow this proof to be ran on the external CI
  • Loading branch information
JoaoDiogoDuarte authored Oct 5, 2024
2 parents 51b6713 + ba56602 commit 332f901
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/amd64-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,20 @@ jobs:
- name: return error
run: make -C proof/ CI=1 err

# proof (using runtest)
proof-runtest:
runs-on: [self-hosted, linux, X64, amd64-main]
steps:
- name: checkout
uses: actions/checkout@v4
- name: preprocess
run: make -j$JOBS -C src/ CI=1 preprocess-inplace

- name: run proof
run: make -j$JOBS -C proof/ all-runtest
- name: print report
run: make -C proof/ CI=1 reporter
- name: return error
run: make -C proof/ CI=1 err


6 changes: 6 additions & 0 deletions proof/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ all-no-report:
$(MAKE) check-extracted
$(MAKE) check-all

all-runtest: CI=1
all-runtest:
$(MAKE) distclean
$(MAKE) -C $(SRC) extract-to-easycrypt
(cd $(PROOF)/crypto_scalarmult/curve25519 && $(EASYCRYPT) runtest tests.config curve25519)

# -----------------------------------------------------------------------------
# clean rules

Expand Down
3 changes: 3 additions & 0 deletions proof/crypto_scalarmult/curve25519/easycrypt.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[general]
idirs = ../../arrays/
rdirs = amd64
2 changes: 2 additions & 0 deletions proof/crypto_scalarmult/curve25519/tests.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test-curve25519]
okdirs = !amd64

0 comments on commit 332f901

Please sign in to comment.