Skip to content

Commit

Permalink
Rename build artifacts (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored Aug 3, 2022
1 parent ff2acb2 commit 9cf5711
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 20 deletions.
13 changes: 8 additions & 5 deletions .github/actions/common_setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ runs:
echo "CPYTHON_DIR=$GITHUB_WORKSPACE/cpython" >> $GITHUB_ENV
echo "BUILD_PYTHON_DIR=$GITHUB_WORKSPACE/cpython/builddir/build" >> $GITHUB_ENV
echo "HOST_PYTHON_DIR=$GITHUB_WORKSPACE/cpython/builddir/host" >> $GITHUB_ENV
if test "${{ inputs.python_version }}" = "main"; then
echo "PYTHON_NAME=3.12-dev" >> $GITHUB_ENV
else
echo "PYTHON_NAME=${{ inputs.python_version }}" >> $GITHUB_ENV
fi
PYTHON_VERSION=${{ inputs.python_version }}
case "$PYTHON_VERSION" in
main) echo "PYTHON_NAME=3.12dev" >> $GITHUB_ENV;;
3.11) echo "PYTHON_NAME=3.11dev" >> $GITHUB_ENV;;
v*) echo "PYTHON_NAME=${PYTHON_VERSION:1}" >> $GITHUB_ENV;;
*) echo "PYTHON_NAME=$PYTHON_VERSION" >> $GITHUB_ENV;;
esac
- name: Configure ccache action
uses: hendrikmuhs/ccache-action@v1
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/actions/package_emscripten/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ runs:
run: |
set -e
RELEASE_NAME="emscripten-${{ inputs.flavor }}_py${{ env.PYTHON_NAME }}_emsdk-${{ inputs.emsdk_version }}"
EMSDK_VERSION=${{ inputs.emsdk_version }}
if test "$EMSDK_VERSION" = "latest"; then
EMSDK_VERSION=$(cat ${EMSDK_DIR}/upstream/emscripten/emscripten-version.txt | sed 's,",,g')
fi
RELEASE_NAME="Python-${{ env.PYTHON_NAME }}-wasm32-emscripten-${EMSDK_VERSION}-${{ inputs.flavor }}"
RELEASE_BASE="$HOME/release"
RELEASE_DIR="$RELEASE_BASE/$RELEASE_NAME"
RELEASE_ZIP="$HOME/$RELEASE_NAME.zip"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/package_wasi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
run: |
set -ex
RELEASE_NAME="wasi-py${{ env.PYTHON_NAME }}_wasisdk-${{ inputs.wasisdk_version }}"
RELEASE_NAME="Python-${{ env.PYTHON_NAME }}-wasm32-wasi-${{ inputs.wasisdk_version }}"
RELEASE_BASE="$HOME/release"
RELEASE_DIR="$RELEASE_BASE/$RELEASE_NAME"
RELEASE_ZIP="$HOME/$RELEASE_NAME.zip"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wasi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ jobs:
id: package
with:
wasisdk_version: "${{ matrix.wasisdk_version }}"
wasmtime_version: "${{ matrix.wasmtime_version }}"
if: "${{ matrix.wasmtime_version == 'latest' }}"
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ The `emsdk-tot-upstream` builds are using Emscripte tip-of-tree (nightlies).

### Emscripten browser target

- `emscripten-browser_py3.11_emsdk-latest`: Python 3.11 branch, latest Emscripten SDK
- `emscripten-browser_py3.12-dev_emsdk-latest`: Python main branch (3.12-dev), latest Emscripten SDK
- `Python-3.11dev-wasm32-emscripten-3.1.18-browser`: Python 3.11 branch, Emscripten SDK 3.1.18
- `Python-3.11dev-wasm32-emscripten-3.1.18-browser`: Python main branch (3.12), Emscripten SDK 3.1.18

The files must be served from a web server. You can use the
`wasm_webserver.py` script to run a local web server and
access the browser REPL from http://localhost:8000/python.html

### Emscripte NodeJS target

- `emscripten-node-dl_py3.11_emsdk-latest`: WASM dynamic linking, Python
3.11 branch, latest Emscripten SDK
- `emscripten-node-dl_py3.12-dev_emsdk-latest`: WASM dynamic linking, Python
main branch (3.12-dev), latest Emscripten SDK
- `emscripten-node-pthreads_py3.12-dev_emsdk-latest`: WASM pthreads emulation,
Python main branch (3.12-dev), latest Emscripten SDK
- `emscripten-node-pthreads_py3.11_emsdk-latest`: WASM pthreads emulation,
Python 3.11 branch, latest Emscripten SDK
- `Python-3.11dev-wasm32-emscripten-3.1.18-node-dl`: WASM dynamic linking, Python
3.11 branch, Emscripten SDK 3.1.18
- `Python-3.12dev-wasm32-emscripten-3.1.18-node-dl`: WASM dynamic linking, Python
main branch (3.12), Emscripten SDK 3.1.18
- `Python-3.11dev-wasm32-emscripten-3.1.18-node-pthreads`: WASM pthreads emulation,
Python 3.11 branch, Emscripten SDK 3.1.18
- `Python-3.12dev-wasm32-emscripten-3.1.18-node-pthreads`: WASM pthreads emulation,
Python main branch (3.12), Emscripten SDK 3.1.18

Run:

Expand All @@ -45,8 +45,8 @@ You may have to specify `--experimental-wasm-bigint` for older Node versions and

[WASI nightly tests](https://github.com/tiran/cpython-wasm-test/actions/workflows/wasi.yml?query=event%3Aschedule)

- `wasi_py3.11_wasisdk-16`: Python 3.11 with WASI-SDK 16
- `wasi_py3.12-dev_wasisdk-16`: Python main branch (3.12-dev) with WASI-SDK 16
- `Python-3.11dev-wasm32-wasi-16`: Python 3.11 with WASI-SDK 16
- `Python-3.12dev-wasm32-wasi-16`: Python main branch (3.12-dev) with WASI-SDK 16

Run:

Expand Down

0 comments on commit 9cf5711

Please sign in to comment.