Run Custom Command #3
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: 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 }} |