Skip to content

Commit

Permalink
chore: use docker build for release (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 authored Jul 18, 2024
1 parent 0aefc91 commit 121f9cb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,23 @@ jobs:
- name: Build WASM
run: |
dfx build --check
echo "Cycles ledger:"
echo "Cycles ledger (dfx build):"
ls .dfx/local/canisters/cycles-ledger
echo "Depositor:"
echo "Depositor (dfx build):"
ls .dfx/local/canisters/depositor
echo "Fake CMC:"
echo "Fake CMC (dfx build):"
ls .dfx/local/canisters/fake-cmc
(cd .dfx/local/canisters/cycles-ledger && shasum -a 256 cycles-ledger.wasm.gz > cycles-ledger.wasm.gz.sha256)
./scripts/docker-build
echo "Cycles ledger (docker build):"
ls cycles-ledger.wasm.gz
(shasum -a 256 cycles-ledger.wasm.gz > cycles-ledger.wasm.gz.sha256)
(cd .dfx/local/canisters/depositor && shasum -a 256 depositor.wasm.gz > depositor.wasm.gz.sha256)
(cd .dfx/local/canisters/fake-cmc && shasum -a 256 fake-cmc.wasm.gz > fake-cmc.wasm.gz.sha256)
gh release upload ${{ env.TAG }} .dfx/local/canisters/depositor/depositor.wasm.gz
gh release upload ${{ env.TAG }} .dfx/local/canisters/depositor/depositor.wasm.gz.sha256
gh release upload ${{ env.TAG }} depositor/depositor.did
gh release upload ${{ env.TAG }} .dfx/local/canisters/cycles-ledger/cycles-ledger.wasm.gz
gh release upload ${{ env.TAG }} .dfx/local/canisters/cycles-ledger/cycles-ledger.wasm.gz.sha256
gh release upload ${{ env.TAG }} cycles-ledger.wasm.gz
gh release upload ${{ env.TAG }} cycles-ledger.wasm.gz.sha256
gh release upload ${{ env.TAG }} cycles-ledger/cycles-ledger.did
gh release upload ${{ env.TAG }} .dfx/local/canisters/fake-cmc/fake-cmc.wasm.gz
gh release upload ${{ env.TAG }} .dfx/local/canisters/fake-cmc/fake-cmc.wasm.gz.sha256
Expand Down

0 comments on commit 121f9cb

Please sign in to comment.