Skip to content

Commit a3c2e5e

Browse files
authored
chore: script to force build in CI (#735)
1 parent a0150b3 commit a3c2e5e

File tree

7 files changed

+52
-748
lines changed

7 files changed

+52
-748
lines changed

.github/workflows/deploy-local.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Run Local Build
2+
3+
on:
4+
push:
5+
workflow_dispatch: {}
6+
7+
jobs:
8+
prepare:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
matrix: ${{ steps.set-matrix.outputs.matrix }}
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
run-local-build:
18+
needs: prepare
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
- name: Install lcov
27+
run: |
28+
sudo apt-get install lcov
29+
id: lcov
30+
- name: Install Foundry
31+
uses: foundry-rs/foundry-toolchain@v1
32+
with:
33+
version: nightly
34+
- name: Run forge install
35+
run: forge install
36+
- name: Start anvil and deploy
37+
run: |
38+
anvil --block-time 1 --chain-id 31337 &
39+
ANVIL_PID=$!
40+
echo "---Waiting for anvil to start..."
41+
sleep 10 # Give Anvil some time to start
42+
export RPC_URL="http://127.0.0.1:8545"
43+
echo "Extracted PRIVATE_KEY: $PRIVATE_KEY"
44+
echo "---Deploying Contracts"
45+
RUST_LOG=forge,foundry=trace forge script script/deploy/local/Deploy_From_Scratch.s.sol \
46+
--rpc-url $RPC_URL \
47+
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
48+
--broadcast \
49+
--sig "run(string memory configFile)" \
50+
-- local/deploy_from_scratch.anvil.config.json
51+
kill $ANVIL_PID

.github/workflows/run-deploy-scripts.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

script/configs/devnet/M1_deploy_devnet.config.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

script/configs/devnet/M2_deploy_from_scratch.anvil.config.json

Lines changed: 0 additions & 44 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)