From 46d75f32720c9494deb1740cff225a0b8be8d816 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 27 Jun 2022 23:04:55 -0700 Subject: [PATCH] Deploy a debug version of Pyodide to the CDN (#2800) --- .circleci/config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d1cd7821a..e820d8748 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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