Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/dafny_format_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow reads the project.properties
# into the environment variables
# and then creates an output variable for `dafnyFormatVersion `
name: Dafny Format Version

on:
workflow_call:
outputs:
version:
description: "The dafny version for format"
value: ${{ jobs.getDafnyFormatVersion.outputs.version }}

jobs:
getDafnyFormatVersion:
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.read_property.outputs.dafnyFormatVersion }}
steps:
- uses: actions/checkout@v4
- name: Read version from Properties-file
id: read_property
uses: christian-draeger/read-properties@1.1.1
with:
path: "./project.properties"
properties: "dafnyFormatVersion"
25 changes: 25 additions & 0 deletions .github/workflows/dafny_verify_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow reads the project.properties
# into the environment variables
# and then creates an output variable for `dafnyVerifyVersion `
name: Dafny Verify Version

on:
workflow_call:
outputs:
version:
description: "The dafny version for verify"
value: ${{ jobs.getDafnyVerifyVersion.outputs.version }}

jobs:
getDafnyVerifyVersion:
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.read_property.outputs.dafnyVerifyVersion }}
steps:
- uses: actions/checkout@v4
- name: Read version from Properties-file
id: read_property
uses: christian-draeger/read-properties@1.1.1
with:
path: "./project.properties"
properties: "dafnyVerifyVersion"
25 changes: 25 additions & 0 deletions .github/workflows/dafny_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow reads the project.properties
# into the environment variables
# and then creates an output variable for `dafnyVersion`
name: Dafny Version

on:
workflow_call:
outputs:
version:
description: "The dafny version"
value: ${{ jobs.getDafnyVersion.outputs.version }}

jobs:
getDafnyVersion:
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.read_property.outputs.dafnyVersion }}
steps:
- uses: actions/checkout@v4
- name: Read version from Properties-file
id: read_property
uses: christian-draeger/read-properties@1.1.1
with:
path: "./project.properties"
properties: "dafnyVersion"
31 changes: 23 additions & 8 deletions .github/workflows/daily_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,68 @@ on:
- cron: "00 15 * * 1-5"

jobs:
getVersion:
uses: ./.github/workflows/dafny_version.yaml
getVerifyVersion:
uses: ./.github/workflows/dafny_verify_version.yaml
# not yet used, because we don't actually CI formatting in this project?!?
getFormatVersion:
uses: ./.github/workflows/dafny_format_version.yaml
daily-ci-codegen:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_codegen.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
daily-ci-verification:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVerifyVersion
uses: ./.github/workflows/library_dafny_verification.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVerifyVersion.outputs.version}}
# daily-ci-java:
# if: github.event_name != 'schedule' || github.repository_owner == 'aws'
# uses: ./.github/workflows/library_java_tests.yml
# with:
# dafny: '4.2.0'
daily-ci-net:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_net_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
daily-ci-rust:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_rust_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
daily-ci-go:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_go_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}

daily-ci-interop-tests:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_interop_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}

daily-dafny-test-vectors:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_interop_test_vectors.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}

daily-dafny-legacy-test-vectors:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
needs: getVersion
uses: ./.github/workflows/library_legacy_interop_test_vectors.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
34 changes: 25 additions & 9 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,58 @@ on:
pull_request:

jobs:
getVersion:
uses: ./.github/workflows/dafny_version.yaml
getVerifyVersion:
uses: ./.github/workflows/dafny_verify_version.yaml
# not yet used, because we don't actually CI formatting in this project?!?
getFormatVersion:
uses: ./.github/workflows/dafny_format_version.yaml
pr-ci-codegen:
needs: getVersion
uses: ./.github/workflows/library_codegen.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-ci-verification:
needs: getVerifyVersion
uses: ./.github/workflows/library_dafny_verification.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVerifyVersion.outputs.version}}
# pr-ci-java:
# needs: getVerifyVersion
# uses: ./.github/workflows/library_java_tests.yml
# with:
# dafny: '4.2.0'
# dafny: ${{needs.getVersion.outputs.version}}
pr-ci-net:
needs: getVersion
uses: ./.github/workflows/library_net_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-ci-rust:
needs: getVersion
uses: ./.github/workflows/library_rust_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-ci-go:
needs: getVersion
uses: ./.github/workflows/library_go_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-test-vectors:
needs: getVersion
uses: ./.github/workflows/library_interop_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-dafny-test-vectors:
needs: getVersion
uses: ./.github/workflows/library_interop_test_vectors.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-dafny-legacy-test-vectors:
needs: getVersion
uses: ./.github/workflows/library_legacy_interop_test_vectors.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-ci-all-required:
if: always()
needs:
Expand Down
28 changes: 21 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,45 @@ on:
- main

jobs:
getVersion:
uses: ./.github/workflows/dafny_version.yaml
getVerifyVersion:
uses: ./.github/workflows/dafny_verify_version.yaml
# not yet used, because we don't actually CI formatting in this project?!?
getFormatVersion:
uses: ./.github/workflows/dafny_format_version.yaml
pr-ci-codegen:
needs: getVersion
uses: ./.github/workflows/library_codegen.yml
with:
dafny: '4.9.0'
dafny:
push-ci-verification:
needs: getVerifyVersion
uses: ./.github/workflows/library_dafny_verification.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVerifyVersion.outputs.version}}
# push-ci-java:
# needs: getVerifyVersion
# uses: ./.github/workflows/library_java_tests.yml
# with:
# dafny: '4.2.0'
# dafny: ${{needs.getVersion.outputs.version}}
push-ci-net:
needs: getVersion
uses: ./.github/workflows/library_net_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
push-ci-rust:
needs: getVersion
uses: ./.github/workflows/library_rust_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
push-ci-go:
needs: getVersion
uses: ./.github/workflows/library_go_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
pr-test-vectors:
needs: getVersion
uses: ./.github/workflows/library_interop_tests.yml
with:
dafny: '4.9.0'
dafny: ${{needs.getVersion.outputs.version}}
7 changes: 7 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dafnyVersion=4.9.0
dafnyVerifyVersion=4.9.0
dafnyFormatVersion=4.9.0
projectJavaVersion=4.1.0
mplDependencyJavaVersion=1.8.0
dafnyRuntimeJavaVersion=4.9.0
smithyDafnyJavaConversionVersion=0.1.1
Loading