-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SampCert submodule and build, alternative (#173)
By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt). --------- Co-authored-by: jtristan <[email protected]>
- Loading branch information
1 parent
64dfa70
commit 6a73c2f
Showing
5 changed files
with
48 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'Compare DafnyVMCTrait.dfy' | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
jobs: | ||
compare-trait: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- run: bash scripts/prep.sh | ||
- run: cp src/DafnyVMCTrait.dfy src/DafnyVMCTrait_.dfy | ||
- run: DAFNY=dafny/dafny bash scripts/sampcert.sh | ||
- run: cat src/DafnyVMCTrait.dfy | ||
- run: diff src/DafnyVMCTrait.dfy src/DafnyVMCTrait_.dfy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
[submodule "docs/py/Benchmarks/differential-privacy-library"] | ||
path = docs/py/Benchmarks/differential-privacy-library | ||
url = https://github.com/IBM/differential-privacy-library/ | ||
[submodule "SampCert"] | ||
path = SampCert | ||
url = [email protected]:leanprover/SampCert.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pushd SampCert | ||
set -o pipefail | ||
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.2/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz | ||
./elan-init -y --default-toolchain leanprover/lean4:v4.7.0 | ||
$HOME/.elan/bin/lake build VMC | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters