Skip to content

Commit 2d22a55

Browse files
authored
Update linux arm64 build. NFC (#1270)
1 parent c8dcb45 commit 2d22a55

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

emscripten-releases-tags.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"aliases": {
33
"latest": "3.1.45",
44
"latest-sdk": "latest",
5-
"latest-arm64-linux": "3.1.43",
5+
"latest-arm64-linux": "3.1.45",
66
"latest-64bit": "latest",
77
"sdk-latest-64bit": "latest",
88
"latest-upstream": "latest",

scripts/update_linux_arm64.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
# Script for updating the linux-arm64 release
3+
#
4+
# Takes as stdin the JSON string generated by the S3 bucket update when
5+
# amazon produces a new build. e.g.
6+
# {"Records":[{"eventVersion":"2.1","eventSource":"aws:s3","awsRegion":"us-west-2","eventTime":"2023-08-23T19:12:29.218Z","eventName":"ObjectCreated:CompleteMultipartUpload","userIdentity":{"principalId":"AWS:AROAZNAVTCTIWSHR6WFTE:i-0124c978819146a2f"},"requestParameters":{"sourceIPAddress":"35.90.239.236"},"responseElements":{"x-amz-request-id":"3SDMWYMG4BN47DCD","x-amz-id-2":"0mRaqwIIZI8ob1B7TmTSd/s0lXxST73ktgGm94MjKj2bnflqD1zCjbh2LeMIYYPvvfgQu0Ocrlev4nYmiOmS9wR0M/lvpCQz"},"s3":{"s3SchemaVersion":"1.0","configurationId":"arn:aws:cloudformation:us-west-2:646437868753:stack/EmscriptenArm64BuilderStack/eb5d5760-ee9a-11ec-a790-06738944b93b--3752220361625282518","bucket":{"name":"emscripten-arm64-4484191c","ownerIdentity":{"principalId":"A2IEUDOSUKZVHO"},"arn":"arn:aws:s3:::emscripten-arm64-4484191c"},"object":{"key":"emscripten-install-3.1.45-linux-arm64.tbz2","size":247058408,"eTag":"bb7f6835c7900deee6e7881a352ab48c-30","sequencer":"0064E65A1BC2C23A2E"}}}]}
7+
8+
set -e
9+
10+
if [ $# -ne 1 ]; then
11+
echo "Please specify a single argument which is an emsdk version (e.g. 3.1.45)"
12+
exit
13+
fi
14+
15+
VERSION=$1
16+
SHA=$(jq -r ".releases.\"${VERSION}\"" emscripten-releases-tags.json)
17+
URL=$(jq -r '.Records[0] | "https://\(.s3.bucket.name).s3.\(.awsRegion).amazonaws.com/\(.s3.object.key)"')
18+
19+
wget $URL -O arm64.tbz2
20+
gsutil cp -n arm64.tbz2 gs://webassembly/emscripten-releases-builds/linux/${SHA}/wasm-binaries-arm64.tbz2
21+
sed -i "s/\"latest-arm64-linux\": \".*\"/\"latest-arm64-linux\": \"$VERSION\"/" emscripten-releases-tags.json
22+
23+
echo "done"

0 commit comments

Comments
 (0)