Skip to content

Commit

Permalink
consolidate dafny version
Browse files Browse the repository at this point in the history
  • Loading branch information
seebees committed Oct 20, 2023
1 parent 55bc657 commit 9efafe0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/dafny_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This workflow reads the project.properties
# into the environment variables
# and then creates an output variable for `dafnyVersion`
name: Dafny Version

jobs:
getDafnyVersion:
outputs:
dafnyVersion: $${{steps.getVersion.outputs.dafnyVersion}}
steps:
- id: getVersion
shell: bash
run: |
export `cat ../../project.properties`
echo "dafnyVersion=$dafnyVersion" >> "$GITHUB_OUTPUT"
9 changes: 5 additions & 4 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ on:

jobs:
pr-ci-format:
needs: getDafnyVersion
uses: ./.github/workflows/library_dafny_format.yml
with:
dafny: '4.2.0'
dafny: ${{needs.getDafnyVersion.dafnyVersion}}
pr-ci-verification:
uses: ./.github/workflows/library_dafny_verification.yml
with:
dafny: '4.2.0'
dafny: ${{needs.getDafnyVersion.dafnyVersion}}
pr-ci-java:
uses: ./.github/workflows/library_java_tests.yml
with:
dafny: '4.2.0'
dafny: ${{needs.getDafnyVersion.dafnyVersion}}
pr-ci-net:
uses: ./.github/workflows/library_net_tests.yml
with:
dafny: '4.2.0'
dafny: ${{needs.getDafnyVersion.dafnyVersion}}
1 change: 1 addition & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dafnyVersion=4.2.0

0 comments on commit 9efafe0

Please sign in to comment.