Client: Optimism #29
Workflow file for this run
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
--- | |
name: 'Client: Optimism' | |
on: | |
workflow_dispatch: | |
inputs: | |
branch_name: | |
description: 'Branch Name to Test From' | |
required: true | |
extra_args: | |
description: 'Additional Arguments to for run_kontro.sh ' | |
required: false | |
statuses_sha: | |
description: 'SHA of the commit to report back to' | |
required: false | |
# Multiple Runs will need to be allowed to queue | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.branch_name }} | |
cancel-in-progress: true | |
jobs: | |
optimism: | |
name: 'Optimism Kontrol CI' | |
runs-on: [self-hosted, linux, kaas] | |
steps: | |
- name: Report status back to original repository | |
run: | | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.JENKINS_GITHUB_PAT }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/runtimeverification/circleCI-TestBed/statuses/${{ github.event.inputs.statuses_sha }} \ | |
-d '{"state":"pending","target_url":"https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID","description":"Optimism Proof Execution Pending","context":"runtimeverification/optimism-ci"}' | |
env: | |
GITHUB_SHA: ${{ github.event.client_payload.sha }} | |
# - name: "Install KaaS" | |
# uses: runtimeverification/[email protected] | |
# with: | |
# github-token: ${{ secrets.JENKINS_GITHUB_PAT }} | |
# - name: "Checkout Optimism" | |
# uses: actions/checkout@v4 | |
# with: | |
# repository: 'ethereum-optimism/optimism' | |
# token: ${{ secrets.JENKINS_GITHUB_PAT }} | |
# path: 'optimism' | |
# ref: ${{ github.event.inputs.branch_name }} | |
# fetch-depth: 0 | |
# submodules: 'recursive' | |
# - name: "Checkout Optimism (RV Fork)" | |
# uses: actions/checkout@v4 | |
# with: | |
# repository: 'runtimeverification/_audits_Ethereum-optimism_pausability' | |
# token: ${{ secrets.JENKINS_GITHUB_PAT }} | |
# path: 'optimism' | |
# ref: ${{ github.event.inputs.branch_name }} | |
# fetch-depth: 0 | |
# submodules: 'recursive' | |
# - name: "Download KCFG's" | |
# shell: bash | |
# run: | | |
# pushd optimism/packages/contracts-bedrock > /dev/null | |
# kaas-cli --vault ${{ secrets.OPTIMISM_VAULT }} --token ${{ secrets.OPTIMISM_TOKEN }} download -d kout-proofs/ | |
# - name: 'Run Kontrol' | |
# shell: bash | |
# run: | | |
# set -xeu pipefail | |
# # Run the following in the running docker container | |
# pushd optimism/packages/contracts-bedrock > /dev/null | |
# # Need to checkout submodules, GH action doesn't do this properly. | |
# git submodule update --init --recursive | |
# find . -name "run-kontrol.sh" -type f -exec {} ${{ github.event.inputs.extra_args }} \; | |
# - name: 'KCFG Upload Results' | |
# shell: bash | |
# run: | | |
# pushd optimism/packages/contracts-bedrock > /dev/null | |
# kaas-cli --vault ${{ secrets.OPTIMISM_VAULT }} --token ${{ secrets.OPTIMISM_TOKEN }} upload-s3 -d kout-proofs/ | |
# - name: 'Upload results.tar.gz' | |
# if: always() | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: Kontrol Results | |
# path: optimism/**/results-*.tar.gz | |
# retention-days: 5 |