Skip to content

Commit

Permalink
Merge pull request #59 from jimthematrix/release-contracts
Browse files Browse the repository at this point in the history
Add compiled contracts to release artifacts
  • Loading branch information
jimthematrix committed Sep 6, 2024
2 parents b022e1d + ef8773d commit 426aeae
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: false,
runs: 1000,
},
},
},
paths: {
sources: "contracts"
},
Expand Down

0 comments on commit 426aeae

Please sign in to comment.