Skip to content

Commit

Permalink
Add compiled contracts to release artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Sep 6, 2024
1 parent f0cbf00 commit 6173528
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,33 @@ jobs:
npm install
npm run gen
- name: Create artifacts archives
- name: Build contracts
working-directory: solidity
run: |
npm install
npx hardhat compile
- name: Create prover archives
working-directory: ${{ runner.temp }}/zeto-artifacts
run: |
tar -czvf zeto-wasm-$ZETO_VER.tar.gz **/*.wasm
tar -czvf zeto-test-proving-keys-$ZETO_VER.tar.gz *.zkey *-vkey.json
- name: Create contract archives
working-directory: solidity
env:
ARTIFACTS_ROOT: ${{ runner.temp }}/zeto-artifacts
run: |
tar -czvf $ARTIFACTS_ROOT/zeto-contracts-$ZETO_VER.tar.gz artifacts/contracts/**/*.json
- name: Publish Release Artifact
uses: actions/upload-artifact@v4
with:
name: zeto-wasm-and-proving-keys
path: |
${{ runner.temp }}/zeto-artifacts/zeto-wasm-*.tar.gz
${{ runner.temp }}/zeto-artifacts/zeto-test-proving-keys-*.tar.gz
${{ runner.temp }}/zeto-artifacts/zeto-contracts-*.tar.gz
create-release:
name: Create GitHub Release
Expand Down
10 changes: 9 additions & 1 deletion solidity/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ const keys = [
];

const config: HardhatUserConfig = {
solidity: "0.8.20",
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
paths: {
sources: "contracts"
},
Expand Down

0 comments on commit 6173528

Please sign in to comment.