Skip to content

Run Custom Command

Run Custom Command #3

name: Run Custom Command
on:
workflow_dispatch:
inputs:
cmd:
description: cli cmd to run
required: true
jobs:
run-custom-command:
name: Run Custom Command
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install forge dependencies
run: forge install
- name: Precompile reference contracts
run: FOUNDRY_PROFILE=reference forge build
- name: Precompile optimized contracts
run: FOUNDRY_PROFILE=optimized forge build
- name: Run custom command
run: ${{ github.event.inputs.cmd }}