fix: Updating the Coinbase URL (#272) #1227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
assets: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build canister | |
uses: ./.github/actions/build | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Link the build sha to this commit" | |
run: | | |
: Set up git | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
: Make a note of the WASM shasum. | |
NOTE="refs/notes/*" | |
SHA="$(sha256sum < "./out/xrc.wasm.gz")" | |
echo $SHA | |
git fetch origin "+${NOTE}:${NOTE}" | |
if git notes --ref="wasm-sha" add -m "$SHA" | |
then git push origin "${NOTE}:${NOTE}" || true | |
else echo SHA already set | |
fi | |
- name: "Verify that the WASM module is small enough to deploy" | |
run: | | |
wasm_size="$(wc -c < "./out/xrc.wasm.gz")" | |
max_size=2097000 | |
echo "WASM size: $wasm_size" | |
echo "Max supported size: $max_size" | |
(( wasm_size <= max_size )) || { echo "The WASM is too large" ; exit 1 ; } |