Client: Optimism #21
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: 'Optimism & Kontrol CI' | |
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 | |
# Multiple Runs will need to be allowed to queue | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
optimism: | |
name: 'Optimism Kontrol CI' | |
runs-on: [self-hosted, linux, kaas] | |
steps: | |
- 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 |