Skip to content

Commit

Permalink
chore: cleanup scratch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Sep 9, 2024
1 parent a0150b3 commit 91c81b6
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 748 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/deploy-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Run Scratch Build

on:
push:
workflow_dispatch: {}

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

steps:
- name: Checkout code
uses: actions/checkout@v2

run-local-build:
needs: prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install lcov
run: |
sudo apt-get install lcov
id: lcov
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run forge install
run: forge install
- name: Start anvil and deploy
run: |
anvil --block-time 1 --chain-id 31337 &
ANVIL_PID=$!
echo "---Waiting for anvil to start..."
sleep 10 # Give Anvil some time to start
export RPC_URL="http://127.0.0.1:8545"
echo "Extracted PRIVATE_KEY: $PRIVATE_KEY"
echo "---Deploying Contracts"
RUST_LOG=forge,foundry=trace forge script script/deploy/local/Deploy_From_Scratch.s.sol \
--rpc-url $RPC_URL \
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
--broadcast \
--sig "run(string memory configFile)" \
-- local/deploy_from_scratch.anvil.config.json
kill $ANVIL_PID
38 changes: 0 additions & 38 deletions .github/workflows/run-deploy-scripts.yml

This file was deleted.

48 changes: 0 additions & 48 deletions script/configs/devnet/M1_deploy_devnet.config.json

This file was deleted.

44 changes: 0 additions & 44 deletions script/configs/devnet/M2_deploy_from_scratch.anvil.config.json

This file was deleted.

Loading

0 comments on commit 91c81b6

Please sign in to comment.