File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,15 @@ jobs:
16
16
cargo install ic-wasm
17
17
mkdir out
18
18
cargo build --target wasm32-unknown-unknown --release --locked -p idempotent-proxy-canister
19
- cp target/wasm32-unknown-unknown/release/idempotent_proxy_canister.wasm out/
20
- cp src/idempotent-proxy-canister/idempotent-proxy-canister.did out/idempotent_proxy_canister.did
21
- ic-wasm out/idempotent_proxy_canister.wasm -o out/idempotent_proxy_canister.wasm shrink
22
- ic-wasm out/idempotent_proxy_canister.wasm -o out/idempotent_proxy_canister.wasm optimize O3 --inline-functions-with-loops
23
- gzip out/idempotent_proxy_canister.wasm
24
- SHA256="$(sha256sum < "out/idempotent_proxy_canister.wasm.gz" | sed 's/ .*$//g')"
25
- echo $SHA256 > "out/idempotent_proxy_canister.wasm.gz.$SHA256.txt"
19
+ CAN="idempotent_proxy_canister"
20
+ cp "target/wasm32-unknown-unknown/release/$CAN.wasm" out/
21
+ cp src/idempotent-proxy-canister/idempotent-proxy-canister.did "out/$CAN.did"
22
+ ic-wasm "out/$CAN.wasm" -o "out/$CAN.wasm" metadata candid:service -f "out/$CAN.did" -v public
23
+ ic-wasm "out/$CAN.wasm" -o "out/$CAN.wasm" shrink
24
+ ic-wasm "out/$CAN.wasm" -o "out/$CAN.wasm" optimize O3 --inline-functions-with-loops
25
+ gzip "out/$CAN.wasm"
26
+ SHA256="$(sha256sum < "out/$CAN.wasm.gz" | sed 's/ .*$//g')"
27
+ echo $SHA256 > "out/$CAN.wasm.gz.$SHA256.txt"
26
28
ls -lah out
27
29
- name : Release
28
30
uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments