diff --git a/.github/actions/build_nns_dapp/action.yaml b/.github/actions/build_nns_dapp/action.yaml index 73652be198f..bacee58c522 100644 --- a/.github/actions/build_nns_dapp/action.yaml +++ b/.github/actions/build_nns_dapp/action.yaml @@ -82,4 +82,10 @@ runs: DFX_NETWORK=local ./config.sh && cp nns-dapp-arg-local.did out && didc encode "$(cat out/nns-dapp-arg-local.did)" | xxd -r -p >out/nns-dapp-arg-local.bin - name: Hash artefacts shell: bash - run: find out/ -type f | xargs sha256sum + # Note: + # * sha256sum prints the hash of each file; + # * The `wc -c` in the awk code gets the size in bytes of each file; + # * The AWK code also adds a header and footer; + # * `column -t` formats the data as a table; + # * `tee` saves a copy of the printout in a file; that file will be included in releases. + run: find out/ -type f | xargs sha256sum | awk '{"wc -c " $2 | getline size; print $1, size}BEGIN{print "===START_ARTEFACTS===\nsha256 size filename"}END{print "==END_ARTEFACTS=="}' | column -t | tee out/filelist.txt diff --git a/.github/actions/release_nns_dapp/action.yaml b/.github/actions/release_nns_dapp/action.yaml index 9cd0f2cf4d8..279915dbc71 100644 --- a/.github/actions/release_nns_dapp/action.yaml +++ b/.github/actions/release_nns_dapp/action.yaml @@ -20,7 +20,7 @@ runs: cd "${{ inputs.assets_dir }}" daily_build_name="nns-dapp-$(git rev-parse HEAD).wasm.gz" cp nns-dapp.wasm.gz "$daily_build_name" - artefacts=(nns-dapp.wasm.gz nns-dapp_noassets.wasm.gz nns-dapp_production.wasm.gz nns-dapp_test.wasm.gz sns_aggregator.wasm.gz sns_aggregator_dev.wasm.gz assets.tar.xz "$daily_build_name" nns-dapp-arg-{mainnet,local}.{did,bin}) + artefacts=(nns-dapp.wasm.gz nns-dapp_noassets.wasm.gz nns-dapp_production.wasm.gz nns-dapp_test.wasm.gz sns_aggregator.wasm.gz sns_aggregator_dev.wasm.gz assets.tar.xz "$daily_build_name" nns-dapp-arg-{mainnet,local}.{did,bin} filelist.txt) ls -l "${artefacts[@]}" for tag in $(git tag --points-at HEAD) ; do : Creates or updates a release for the tag diff --git a/CHANGELOG-Nns-Dapp.md b/CHANGELOG-Nns-Dapp.md index 9f6792341eb..97450285119 100644 --- a/CHANGELOG-Nns-Dapp.md +++ b/CHANGELOG-Nns-Dapp.md @@ -41,6 +41,7 @@ The NNS Dapp is released through proposals in the Network Nervous System. Theref #### Changed * Specify the `snsdemo` version in `dfx.json`. +* Make the file list stats accessible in logs and as a file in the release artefacts. * Support using the nns-dapp downgrade-upgrade test with Wasms other than prod. #### Deprecated