Skip to content

Commit

Permalink
Adding CI: to workflow (#73)
Browse files Browse the repository at this point in the history
Add bytecode artifacts
  • Loading branch information
zeroknots authored Jul 12, 2024
1 parent 1371979 commit b249aa0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
workflow_dispatch:
push:
tags:
- "*"
pull_request:

jobs:
forge-artifacts:
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-artifacts.yaml@main"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"files": [
"src",
"artifacts",
"foundry.toml",
"remappings.txt"
],
Expand Down
6 changes: 5 additions & 1 deletion shell/prepare-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ mkdir $artifacts \
FOUNDRY_PROFILE=optimized forge build

cp out-optimized/Registry.sol/Registry.json $artifacts
cp out-optimized/MockERC1271Attester.sol/MockERC1271Attester.json $artifacts
cp out-optimized/MockResolver.sol/MockResolver.json $artifacts
cp out-optimized/MockSchemaValidator.sol/MockSchemaValidator.json $artifacts



interfaces=./artifacts/interfaces

cp out-optimized/IRegistry.sol/IERC7484.json $interfaces
cp out-optimized/IERC7484.sol/IERC7484.json $interfaces
cp out-optimized/IRegistry.sol/IRegistry.json $interfaces
cp out-optimized/IExternalResolver.sol/IExternalResolver.json $interfaces
cp out-optimized/IExternalSchemaValidator.sol/IExternalSchemaValidator.json $interfaces
Expand Down

0 comments on commit b249aa0

Please sign in to comment.