-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…0-rc.7 (#136) Includes the following three PRs: - bootstrap for 1.0-rc.7 changes (#133) - Add bonsai integration CI workflow (#135) - update risc0 dependencies to 1.0.0-rc.7 (#132) --------- Co-authored-by: Angelo Capossele <[email protected]> Co-authored-by: Erik Kaneda <[email protected]>
- Loading branch information
1 parent
157cb34
commit b96ab6f
Showing
18 changed files
with
218 additions
and
120 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,55 @@ | ||
name: Bonsai integration | ||
|
||
on: | ||
pull_request: | ||
branches: ["release-*"] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
# this is needed to gain access via OIDC to the S3 bucket for caching | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RISC0_TOOLCHAIN_VERSION: v2024-04-22.0 | ||
RISC0_MONOREPO_REF: "v1.0.0-rc.7" | ||
|
||
jobs: | ||
e2e-test: | ||
# TODO: Using the nvidia_rtx_a5000 as a workaround because it has jq installed. | ||
# Need to refactor the test-local-deployment.sh script or ensure jq is installed in this job instead. | ||
runs-on: [self-hosted, prod, Linux, nvidia_rtx_a5000] | ||
steps: | ||
# This is a workaround from: https://github.com/actions/checkout/issues/590#issuecomment-970586842 | ||
- run: "git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :" | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: risc0/risc0/.github/actions/[email protected] | ||
- uses: risc0/risc0/.github/actions/[email protected] | ||
with: | ||
key: Linux-default | ||
- uses: risc0/foundry-toolchain@2fe7e70b520f62368a0e3c464f997df07ede420f | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- uses: ./.github/actions/cargo-risczero-install | ||
with: | ||
ref: ${{ env.RISC0_MONOREPO_REF }} | ||
toolchain-version: ${{ env.RISC0_TOOLCHAIN_VERSION }} | ||
features: default | ||
- name: build erc20-Counter | ||
run: cargo build | ||
working-directory: examples/erc20-counter | ||
- name: test erc20-Counter | ||
run: ./test-local-deployment.sh | ||
env: | ||
BONSAI_API_URL: ${{ secrets.BONSAI_API_URL }} | ||
BONSAI_API_KEY: ${{ secrets.BONSAI_API_KEY }} | ||
working-directory: examples/erc20-counter | ||
- run: sccache --show-stats |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.