Deploy a debug version of Pyodide to the CDN (#2800)

This commit is contained in:
Hood Chatham 2022-06-27 23:04:55 -07:00 committed by GitHub
parent 49807b699c
commit 46d75f3272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -346,6 +346,21 @@ jobs:
aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/full/"
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache
- run:
name: Make debug version
command: |
rm dist/pyodide.asm.js
PYODIDE_SYMBOLS=1 make dist/pyodide.asm.js
cd dist
npx prettier -w pyodide.asm.js
cd ..
- run:
name: Deploy debug version to pyodide-cdn2.iodide.io
command: |
find dist/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;"
aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/debug/"
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache
workflows:
version: 2