diff --git a/.github/workflows/hosting-photo-storage-example.yml b/.github/workflows/hosting-photo-storage-example.yml index 8bd933b96..79d856ec1 100644 --- a/.github/workflows/hosting-photo-storage-example.yml +++ b/.github/workflows/hosting-photo-storage-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/hosting-photo-storage-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/hosting-static-website-example.yaml b/.github/workflows/hosting-static-website-example.yaml index c9d3a0631..726cd2938 100644 --- a/.github/workflows/hosting-static-website-example.yaml +++ b/.github/workflows/hosting-static-website-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/hosting-static-website-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/hosting-unity-webgl-example.yaml b/.github/workflows/hosting-unity-webgl-example.yaml index 769b8d53f..75de5cc34 100644 --- a/.github/workflows/hosting-unity-webgl-example.yaml +++ b/.github/workflows/hosting-unity-webgl-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/hosting-unity-webgl-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-actor_reference-example.yaml b/.github/workflows/motoko-actor_reference-example.yaml index dc9426e7c..1d66ffab9 100644 --- a/.github/workflows/motoko-actor_reference-example.yaml +++ b/.github/workflows/motoko-actor_reference-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-actor_reference-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-basic-bitcoin.yaml b/.github/workflows/motoko-basic-bitcoin.yaml index cdf457627..f4ba8f4ac 100644 --- a/.github/workflows/motoko-basic-bitcoin.yaml +++ b/.github/workflows/motoko-basic-bitcoin.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-basic-bitcoin.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-basic-dao-example.yml b/.github/workflows/motoko-basic-dao-example.yml index 004c1f8c2..324bb047b 100644 --- a/.github/workflows/motoko-basic-dao-example.yml +++ b/.github/workflows/motoko-basic-dao-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-basic-dao-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-calc-example.yaml b/.github/workflows/motoko-calc-example.yaml index 57fd57697..761d72095 100644 --- a/.github/workflows/motoko-calc-example.yaml +++ b/.github/workflows/motoko-calc-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-calc-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-cert_var-example.yaml b/.github/workflows/motoko-cert_var-example.yaml index d3ac82d30..d4096411e 100644 --- a/.github/workflows/motoko-cert_var-example.yaml +++ b/.github/workflows/motoko-cert_var-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-cert_var-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-classes-example.yaml b/.github/workflows/motoko-classes-example.yaml index d955d8c8c..f6515abb4 100644 --- a/.github/workflows/motoko-classes-example.yaml +++ b/.github/workflows/motoko-classes-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-classes-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-composite-query-example.yaml b/.github/workflows/motoko-composite-query-example.yaml index 9d5d40e43..b2654c5c8 100644 --- a/.github/workflows/motoko-composite-query-example.yaml +++ b/.github/workflows/motoko-composite-query-example.yaml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-linux.sh - .github/workflows/motoko-composite-query-example.yaml - .github/workflows/motoko-composite-query-skip.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-counter-example.yaml b/.github/workflows/motoko-counter-example.yaml index 676825f57..081d82c33 100644 --- a/.github/workflows/motoko-counter-example.yaml +++ b/.github/workflows/motoko-counter-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-counter-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-defi-example.yml b/.github/workflows/motoko-defi-example.yml index fb4488213..9974d4d31 100644 --- a/.github/workflows/motoko-defi-example.yml +++ b/.github/workflows/motoko-defi-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-defi-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-dip721-example.yml b/.github/workflows/motoko-dip721-example.yml index ad3b2bc16..55c739951 100644 --- a/.github/workflows/motoko-dip721-example.yml +++ b/.github/workflows/motoko-dip721-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-dip721-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-echo-example.yaml b/.github/workflows/motoko-echo-example.yaml index edf9795b7..3bd1a9fd2 100644 --- a/.github/workflows/motoko-echo-example.yaml +++ b/.github/workflows/motoko-echo-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-echo-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-encrypted-notes-example.yml b/.github/workflows/motoko-encrypted-notes-example.yml index 7c7e8435f..55569b651 100644 --- a/.github/workflows/motoko-encrypted-notes-example.yml +++ b/.github/workflows/motoko-encrypted-notes-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-encrypted-notes-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-encrypted-notes-vetkd-example.yml b/.github/workflows/motoko-encrypted-notes-vetkd-example.yml index 5c1fb5ea6..856fff060 100644 --- a/.github/workflows/motoko-encrypted-notes-vetkd-example.yml +++ b/.github/workflows/motoko-encrypted-notes-vetkd-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-encrypted-notes-vetkd-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-factorial-example.yaml b/.github/workflows/motoko-factorial-example.yaml index b99dfd015..69e3bd2c6 100644 --- a/.github/workflows/motoko-factorial-example.yaml +++ b/.github/workflows/motoko-factorial-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-factorial-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-hello-example.yml b/.github/workflows/motoko-hello-example.yml index 58576cb7f..2d2cfbb1c 100644 --- a/.github/workflows/motoko-hello-example.yml +++ b/.github/workflows/motoko-hello-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-hello-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-hello-world-example.yaml b/.github/workflows/motoko-hello-world-example.yaml index ebd1e4565..368f7b473 100644 --- a/.github/workflows/motoko-hello-world-example.yaml +++ b/.github/workflows/motoko-hello-world-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-hello-world-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-hello_cycles-example.yaml b/.github/workflows/motoko-hello_cycles-example.yaml index a314786b3..64ca208d0 100644 --- a/.github/workflows/motoko-hello_cycles-example.yaml +++ b/.github/workflows/motoko-hello_cycles-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-hello_cycles-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-http_counter-example.yaml b/.github/workflows/motoko-http_counter-example.yaml index f19891c6b..4f363d5fc 100644 --- a/.github/workflows/motoko-http_counter-example.yaml +++ b/.github/workflows/motoko-http_counter-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-http_counter-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-icp-transfer-example.yml b/.github/workflows/motoko-icp-transfer-example.yml index 8f6117e63..185b8dc5f 100644 --- a/.github/workflows/motoko-icp-transfer-example.yml +++ b/.github/workflows/motoko-icp-transfer-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-icp-transfer-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-icrc2-swap-example.yml b/.github/workflows/motoko-icrc2-swap-example.yml index 1714fcc3d..2f1f73639 100644 --- a/.github/workflows/motoko-icrc2-swap-example.yml +++ b/.github/workflows/motoko-icrc2-swap-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-icrc2-swap-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-internet-identity-integration-example.yaml b/.github/workflows/motoko-internet-identity-integration-example.yaml index 22bb64a5a..ec0d79724 100644 --- a/.github/workflows/motoko-internet-identity-integration-example.yaml +++ b/.github/workflows/motoko-internet-identity-integration-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-internet-identity-integration-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-invoice-e2e.yaml b/.github/workflows/motoko-invoice-e2e.yaml index 019539c9d..171447535 100644 --- a/.github/workflows/motoko-invoice-e2e.yaml +++ b/.github/workflows/motoko-invoice-e2e.yaml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-invoice-e2e.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-invoice-unit.yaml b/.github/workflows/motoko-invoice-unit.yaml index ed904888b..c199425c4 100644 --- a/.github/workflows/motoko-invoice-unit.yaml +++ b/.github/workflows/motoko-invoice-unit.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-invoice-unit.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-ios-notifications-example.yml b/.github/workflows/motoko-ios-notifications-example.yml index 7f1771268..bf859ef66 100644 --- a/.github/workflows/motoko-ios-notifications-example.yml +++ b/.github/workflows/motoko-ios-notifications-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/ios-notifications-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-life-example.yaml b/.github/workflows/motoko-life-example.yaml index 114455822..e5643ccd3 100644 --- a/.github/workflows/motoko-life-example.yaml +++ b/.github/workflows/motoko-life-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-life-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-minimal-counter-dapp-example.yaml b/.github/workflows/motoko-minimal-counter-dapp-example.yaml index a2f4d4993..66e5d8865 100644 --- a/.github/workflows/motoko-minimal-counter-dapp-example.yaml +++ b/.github/workflows/motoko-minimal-counter-dapp-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-minimal-counter-dapp-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-persistent-storage-example.yaml b/.github/workflows/motoko-persistent-storage-example.yaml index 8d7674316..403c78358 100644 --- a/.github/workflows/motoko-persistent-storage-example.yaml +++ b/.github/workflows/motoko-persistent-storage-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-persistent-storage-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-phone-book-example.yaml b/.github/workflows/motoko-phone-book-example.yaml index 39ed27fd9..46002b63b 100644 --- a/.github/workflows/motoko-phone-book-example.yaml +++ b/.github/workflows/motoko-phone-book-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-phone-book-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-pub-sub-example.yaml b/.github/workflows/motoko-pub-sub-example.yaml index 66b2440b2..0999e1295 100644 --- a/.github/workflows/motoko-pub-sub-example.yaml +++ b/.github/workflows/motoko-pub-sub-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-pub-sub-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-quicksort-example.yaml b/.github/workflows/motoko-quicksort-example.yaml index 7d1fba054..c447a49b3 100644 --- a/.github/workflows/motoko-quicksort-example.yaml +++ b/.github/workflows/motoko-quicksort-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-quicksort-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-random_maze-example.yaml b/.github/workflows/motoko-random_maze-example.yaml index 618bd6f62..5e348cd25 100644 --- a/.github/workflows/motoko-random_maze-example.yaml +++ b/.github/workflows/motoko-random_maze-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-random_maze-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-send-http-get-example.yml b/.github/workflows/motoko-send-http-get-example.yml index f4ad771e5..962d98926 100644 --- a/.github/workflows/motoko-send-http-get-example.yml +++ b/.github/workflows/motoko-send-http-get-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-send-http-get-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-send-http-post-example.yml b/.github/workflows/motoko-send-http-post-example.yml index 806004886..e4f690931 100644 --- a/.github/workflows/motoko-send-http-post-example.yml +++ b/.github/workflows/motoko-send-http-post-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-send-http-post-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-simple-to-do-example.yaml b/.github/workflows/motoko-simple-to-do-example.yaml index 0c376c761..ddfbba987 100644 --- a/.github/workflows/motoko-simple-to-do-example.yaml +++ b/.github/workflows/motoko-simple-to-do-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-simple-to-do-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-superheroes-example.yaml b/.github/workflows/motoko-superheroes-example.yaml index 33d49b91c..23cf86af3 100644 --- a/.github/workflows/motoko-superheroes-example.yaml +++ b/.github/workflows/motoko-superheroes-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-superheroes-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-threshold-ecdsa-example.yaml b/.github/workflows/motoko-threshold-ecdsa-example.yaml index ff05143fa..750da5ebb 100644 --- a/.github/workflows/motoko-threshold-ecdsa-example.yaml +++ b/.github/workflows/motoko-threshold-ecdsa-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-threshold-ecdsa-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-token-transfer-example.yml b/.github/workflows/motoko-token-transfer-example.yml index fc4cc2fd4..88182e4ab 100644 --- a/.github/workflows/motoko-token-transfer-example.yml +++ b/.github/workflows/motoko-token-transfer-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-token-transfer-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-token-transfer-from-example.yml b/.github/workflows/motoko-token-transfer-from-example.yml index a9532fa12..602dd6ddb 100644 --- a/.github/workflows/motoko-token-transfer-from-example.yml +++ b/.github/workflows/motoko-token-transfer-from-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-token-transfer-from-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-vetkd-example.yml b/.github/workflows/motoko-vetkd-example.yml index c6ffae834..c6b96c61f 100644 --- a/.github/workflows/motoko-vetkd-example.yml +++ b/.github/workflows/motoko-vetkd-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-vetkd-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/motoko-whoami-example.yaml b/.github/workflows/motoko-whoami-example.yaml index 533073d9b..be7c2cf76 100644 --- a/.github/workflows/motoko-whoami-example.yaml +++ b/.github/workflows/motoko-whoami-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/motoko-whoami-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/provision-darwin.sh b/.github/workflows/provision-darwin.sh index c36d51657..f9add67be 100755 --- a/.github/workflows/provision-darwin.sh +++ b/.github/workflows/provision-darwin.sh @@ -24,6 +24,19 @@ echo "$HOME/Library/Application Support/org.dfinity.dfx/bin" >> $GITHUB_PATH source "$HOME/Library/Application Support/org.dfinity.dfx/env" dfx cache install +# check the current ic-commit found in the main branch, check if it differs from the one in this PR branch +# if so, update the dfx cache with the latest ic artifacts +if [ -f "${GITHUB_WORKSPACE}/.ic-commit" ]; then + stable_sha=$(curl https://raw.githubusercontent.com/dfinity/examples/master/.ic-commit) + current_sha=$(sed <"$GITHUB_WORKSPACE/.ic-commit" 's/#.*$//' | sed '/^$/d') + arch="x86_64-darwin" + if [ "$current_sha" != "$stable_sha" ]; then + export current_sha + export arch + sh "$GITHUB_WORKSPACE/.github/workflows/update-dfx-cache.sh" + fi +fi + # Install ic-repl version=0.7.0 curl --location --output ic-repl "https://github.com/chenyan2002/ic-repl/releases/download/$version/ic-repl-macos" diff --git a/.github/workflows/provision-linux.sh b/.github/workflows/provision-linux.sh index c417e5e08..0062e962d 100755 --- a/.github/workflows/provision-linux.sh +++ b/.github/workflows/provision-linux.sh @@ -18,6 +18,18 @@ rm install-dfx.sh echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH source "$HOME/.local/share/dfx/env" dfx cache install +# check the current ic-commit found in the main branch, check if it differs from the one in this PR branch +# if so, update the dfx cache with the latest ic artifacts +if [ -f "${GITHUB_WORKSPACE}/.ic-commit" ]; then + stable_sha=$(curl https://raw.githubusercontent.com/dfinity/examples/master/.ic-commit) + current_sha=$(sed <"$GITHUB_WORKSPACE/.ic-commit" 's/#.*$//' | sed '/^$/d') + arch="x86_64-linux" + if [ "$current_sha" != "$stable_sha" ]; then + export current_sha + export arch + sh "$GITHUB_WORKSPACE/.github/workflows/update-dfx-cache.sh" + fi +fi # Install ic-repl version=0.7.0 diff --git a/.github/workflows/rust-basic-bitcoin-example.yml b/.github/workflows/rust-basic-bitcoin-example.yml index 672647463..0e4b747d5 100644 --- a/.github/workflows/rust-basic-bitcoin-example.yml +++ b/.github/workflows/rust-basic-bitcoin-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-basic-bitcoin-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-basic-dao-example.yml b/.github/workflows/rust-basic-dao-example.yml index 8e524a7b5..bb51d14b4 100644 --- a/.github/workflows/rust-basic-dao-example.yml +++ b/.github/workflows/rust-basic-dao-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-basic-dao-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-canister-info-example.yml b/.github/workflows/rust-canister-info-example.yml index e5cb1d0f9..0b173a953 100644 --- a/.github/workflows/rust-canister-info-example.yml +++ b/.github/workflows/rust-canister-info-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-linux.sh - .github/workflows/rust-canister-info-example.yml - .github/workflows/rust-canister-info-skip.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-composite_query-example.yml b/.github/workflows/rust-composite_query-example.yml index e835811e1..28f25e166 100644 --- a/.github/workflows/rust-composite_query-example.yml +++ b/.github/workflows/rust-composite_query-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-linux.sh - .github/workflows/rust-composite_query-example.yml - .github/workflows/rust-composite_query-skip.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-counter-example.yml b/.github/workflows/rust-counter-example.yml index 8d7341a2c..6a56707dd 100644 --- a/.github/workflows/rust-counter-example.yml +++ b/.github/workflows/rust-counter-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-counter-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-defi-example.yml b/.github/workflows/rust-defi-example.yml index 385c69520..a709edbf9 100644 --- a/.github/workflows/rust-defi-example.yml +++ b/.github/workflows/rust-defi-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-defi-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-dip721-example.yml b/.github/workflows/rust-dip721-example.yml index 989c7a936..c80731ee8 100644 --- a/.github/workflows/rust-dip721-example.yml +++ b/.github/workflows/rust-dip721-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-dip721-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-encrypted-notes-example.yml b/.github/workflows/rust-encrypted-notes-example.yml index 22e7180cd..ffb7a0929 100644 --- a/.github/workflows/rust-encrypted-notes-example.yml +++ b/.github/workflows/rust-encrypted-notes-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-encrypted-notes-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-encrypted-notes-vetkd-example.yml b/.github/workflows/rust-encrypted-notes-vetkd-example.yml index b8f82ca2c..722dada56 100644 --- a/.github/workflows/rust-encrypted-notes-vetkd-example.yml +++ b/.github/workflows/rust-encrypted-notes-vetkd-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-encrypted-notes-vetkd-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-hello-example.yml b/.github/workflows/rust-hello-example.yml index 9c64dbdc0..c1199fe18 100644 --- a/.github/workflows/rust-hello-example.yml +++ b/.github/workflows/rust-hello-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-hello-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-icp-transfer-example.yml b/.github/workflows/rust-icp-transfer-example.yml index e3e83c552..59fa671e5 100644 --- a/.github/workflows/rust-icp-transfer-example.yml +++ b/.github/workflows/rust-icp-transfer-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-icp-transfer-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-nft-wallet-example.yml b/.github/workflows/rust-nft-wallet-example.yml index 30925ded9..2247cebf9 100644 --- a/.github/workflows/rust-nft-wallet-example.yml +++ b/.github/workflows/rust-nft-wallet-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-nft-wallet-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-performance_counters-example.yaml b/.github/workflows/rust-performance_counters-example.yaml index 008022422..031733393 100644 --- a/.github/workflows/rust-performance_counters-example.yaml +++ b/.github/workflows/rust-performance_counters-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-performance_counters-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-periodic_tasks-example.yaml b/.github/workflows/rust-periodic_tasks-example.yaml index f95b73821..9c4230915 100644 --- a/.github/workflows/rust-periodic_tasks-example.yaml +++ b/.github/workflows/rust-periodic_tasks-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-periodic_tasks-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-pub-sub-example.yml b/.github/workflows/rust-pub-sub-example.yml index 5aded17b1..bdc0b65fc 100644 --- a/.github/workflows/rust-pub-sub-example.yml +++ b/.github/workflows/rust-pub-sub-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-pub-sub-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-qrcode-example.yaml b/.github/workflows/rust-qrcode-example.yaml index a3b1d91e2..b7d330b51 100644 --- a/.github/workflows/rust-qrcode-example.yaml +++ b/.github/workflows/rust-qrcode-example.yaml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-qrcode-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-send-http-get-example.yml b/.github/workflows/rust-send-http-get-example.yml index 2f9acbdd2..86d048247 100644 --- a/.github/workflows/rust-send-http-get-example.yml +++ b/.github/workflows/rust-send-http-get-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-send-http-get-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-send-http-post-example.yml b/.github/workflows/rust-send-http-post-example.yml index 4a1c457a0..d45c85a2a 100644 --- a/.github/workflows/rust-send-http-post-example.yml +++ b/.github/workflows/rust-send-http-post-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-send-http-post-example.yaml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-threshold-ecdsa-example.yml b/.github/workflows/rust-threshold-ecdsa-example.yml index 282e70394..516604882 100644 --- a/.github/workflows/rust-threshold-ecdsa-example.yml +++ b/.github/workflows/rust-threshold-ecdsa-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-threshold-ecdsa-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-token-transfer-example.yml b/.github/workflows/rust-token-transfer-example.yml index 473f7f116..4ca0f0521 100644 --- a/.github/workflows/rust-token-transfer-example.yml +++ b/.github/workflows/rust-token-transfer-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-token-transfer-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-token-transfer-from-example.yml b/.github/workflows/rust-token-transfer-from-example.yml index bb411bfd8..905f04903 100644 --- a/.github/workflows/rust-token-transfer-from-example.yml +++ b/.github/workflows/rust-token-transfer-from-example.yml @@ -10,6 +10,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-token-transfer-from-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rust-vetkd-example.yml b/.github/workflows/rust-vetkd-example.yml index 94e06370f..99168127e 100644 --- a/.github/workflows/rust-vetkd-example.yml +++ b/.github/workflows/rust-vetkd-example.yml @@ -9,6 +9,7 @@ on: - .github/workflows/provision-darwin.sh - .github/workflows/provision-linux.sh - .github/workflows/rust-vetkd-example.yml + - .ic-commit concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/update-dfx-cache.sh b/.github/workflows/update-dfx-cache.sh new file mode 100755 index 000000000..37264a057 --- /dev/null +++ b/.github/workflows/update-dfx-cache.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Download latest ic artifacts +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/replica.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/canister_sandbox.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/ic-admin.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/ic-btc-adapter.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/ic-https-outcalls-adapter.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/ic-nns-init.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/ic-starter.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/sandbox_launcher.gz" +curl -O "https://download.dfinity.systems/ic/$current_sha/binaries/$arch/sns.gz" + +# Overwrite artifacts in dfx cache +gzip -d replica.gz && chmod +x replica && mv replica $(dfx cache show) +gzip -d canister_sandbox.gz && chmod +x canister_sandbox && mv canister_sandbox $(dfx cache show) +gzip -d ic-starter.gz && chmod +x ic-starter && mv ic-starter $(dfx cache show) +gzip -d sandbox_launcher.gz && chmod +x sandbox_launcher && mv sandbox_launcher $(dfx cache show) +gzip -d ic-admin.gz && chmod +x ic-admin && mv ic-admin $(dfx cache show) +gzip -d ic-btc-adapter.gz && chmod +x ic-btc-adapter && mv ic-btc-adapter $(dfx cache show) +gzip -d ic-https-outcalls-adapter.gz && chmod +x ic-https-outcalls-adapter && mv ic-https-outcalls-adapter $(dfx cache show) +gzip -d ic-nns-init.gz && chmod +x ic-nns-init && mv ic-nns-init $(dfx cache show) +gzip -d sns.gz && chmod +x sns && mv sns $(dfx cache show) + +echo "dfx cache updated with latest ic artifacts" diff --git a/.github/workflows/update-ic-commit.yml b/.github/workflows/update-ic-commit.yml new file mode 100644 index 000000000..bb597539c --- /dev/null +++ b/.github/workflows/update-ic-commit.yml @@ -0,0 +1,77 @@ +# A GitHub Actions workflow that regularly creates a pull request to update the IC artifacts +name: IC Artifacts Update + +on: + schedule: + # create a new pull request every monday + - cron: '0 0 * * MON' + +jobs: + ic-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # First, check if there is a newer version and update the file referencing the version + - name: Check new ic version + id: update + run: | + # Not all ic commits are built and released, so we go through the last commits until we found one + # which has associated artefacts + while read -r sha + do + echo "sha: $sha" + # Send a HEAD to the URL to see if it exists + if curl --fail --head --silent --location \ + "https://download.dfinity.systems/ic/$sha/binaries/x86_64-linux/ic-test-state-machine.gz" + then + echo "$sha appears to have associated binary, using" + latest_sha="$sha" + break + else + echo "$sha does not seem to have associated binary" + fi + done < <(curl \ + -SsL \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/dfinity/ic/commits | jq -cMr '.[] | .sha') + + # If we couldn't find any sha with associated artefacts, abort + if [ -z "${latest_sha:-}" ] + then + echo no sha found + exit 1 + fi + + # Compare the current and latest shas, and potentially update the relevant files + current_sha=$(sed <.ic-commit 's/#.*$//' | sed '/^$/d') + + echo current sha is "$current_sha" + + if [ "$current_sha" != "$latest_sha" ]; then + echo "updating $current_sha to $latest_sha" + sed -i -e \ + "s/$current_sha/$latest_sha/g" \ + ".ic-commit" + else + echo "not updating $current_sha" + echo "updated=0" >> "$GITHUB_OUTPUT" + fi + + cat ".ic-commit" + + # If the ic commit was updated, create a PR. + - name: Create Pull Request + if: ${{ steps.update.outputs.updated == '1' }} + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + base: master + add-paths: ./.ic-commit + commit-message: Update commit of IC artifacts + committer: GitHub + author: SDK + branch: bot-ic-update + delete-branch: true + title: 'Update commit of IC artifacts' diff --git a/.ic-commit b/.ic-commit new file mode 100644 index 000000000..8b38a1293 --- /dev/null +++ b/.ic-commit @@ -0,0 +1 @@ +63acf4f88b20ec0c6384f4e18f0f6f69fc5d9b9f \ No newline at end of file