File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1414 - name : Checkout Code
1515 uses : actions/checkout@v4
1616
17+ - name : Prepare Dummy Profiles
18+ run : |
19+ mkdir -p artifacts/capture
20+ cp artifacts/capture/baseline.json artifacts/capture/current_profile.json
21+
1722 - name : Run Stylus Performance Check
1823 uses : ./
1924 with :
2025 tx_hash : " 0xaaf333656d069068844d17f175fa5b73534c0b71599100bee2153791c3e81edc"
2126 rpc_url : " https://sepolia-rollup.arbitrum.io/rpc"
2227 threshold : " 1"
28+ skip_capture : " true"
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ inputs:
2222 description : ' Use Stylus Ink units instead of Gas'
2323 required : false
2424 default : ' false'
25+ skip_capture :
26+ description : ' Skip the capture step (useful for testing with pre-existing profiles)'
27+ required : false
28+ default : ' false'
2529
2630runs :
2731 using : " composite"
4347 - name : Capture Current Profile
4448 shell : bash
4549 run : |
50+ if [ "${{ inputs.skip_capture }}" = "true" ]; then
51+ echo "Skipping capture as requested. Ensuring profile exists..."
52+ mkdir -p artifacts/capture
53+ if [ ! -f "artifacts/capture/current_profile.json" ]; then
54+ echo "Error: current_profile.json not found but skip_capture is true"
55+ exit 1
56+ fi
57+ exit 0
58+ fi
59+
4660 INK_FLAG=""
4761 if [ "${{ inputs.ink }}" = "true" ]; then
4862 INK_FLAG="--ink"
You can’t perform that action at this time.
0 commit comments