-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(GHA): add action for testing against MPL HEAD (#1187)
- Loading branch information
1 parent
a1427e0
commit b2f70ca
Showing
12 changed files
with
280 additions
and
2 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
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
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
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
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
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
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
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
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,78 @@ | ||
# This workflow invokes other workflows with the latest MPL head at 14:00 UTC (7am PDT) | ||
name: CI MPL HEAD | ||
|
||
on: | ||
schedule: | ||
- cron: "00 14 * * 1-5" | ||
|
||
jobs: | ||
getVersion: | ||
# Don't run the cron builds on forks | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/dafny_version.yml | ||
getVerifyVersion: | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/dafny_verify_version.yml | ||
getMplHeadVersion: | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/mpl_head_version.yml | ||
mpl-head-ci-format: | ||
needs: getVersion | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/library_format.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head-ci-verification: | ||
needs: [getVerifyVersion, getMplHeadVersion] | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/library_dafny_verification.yml | ||
with: | ||
dafny: ${{needs.getVerifyVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-test-vector-verification: | ||
needs: [getVerifyVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/test_vector_verification.yml | ||
with: | ||
dafny: ${{needs.getVerifyVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-java: | ||
needs: [getVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/ci_test_java.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-java-test-vectors: | ||
needs: [getVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/ci_test_vector_java.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-java-examples: | ||
needs: [getVersion, getMplHeadVersion] | ||
uses: ./.github/workflows/ci_examples_java.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-version: ${{needs.getMplHeadVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-net: | ||
needs: getVersion | ||
uses: ./.github/workflows/ci_test_net.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-net-test-vectors: | ||
needs: getVersion | ||
uses: ./.github/workflows/ci_test_vector_net.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head: true | ||
mpl-head-ci-net-examples: | ||
needs: getVersion | ||
uses: ./.github/workflows/ci_examples_net.yml | ||
with: | ||
dafny: ${{needs.getVersion.outputs.version}} | ||
mpl-head: true |
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,36 @@ | ||
# This workflow reads the project.properties | ||
# into the environment variables | ||
# and then creates an output variable for `dafnyVerifyVersion ` | ||
name: MPL HEAD Version | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
version: | ||
description: "The dafny version for verify" | ||
value: ${{ jobs.getMplHeadVersion.outputs.version }} | ||
|
||
jobs: | ||
getMplHeadVersion: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.read_property.outputs.mplVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Update MPL submodule locally if requested | ||
working-directory: submodules/MaterialProviders | ||
shell: bash | ||
run: | | ||
git checkout main | ||
git pull | ||
git submodule update --init --recursive | ||
git rev-parse HEAD | ||
- name: Get the MPL version from the MPL submodule | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: "submodules/MaterialProviders/project.properties" | ||
properties: "mplVersion" |
Oops, something went wrong.