Skip to content

Updated the WASM wheel #108

Updated the WASM wheel

Updated the WASM wheel #108

Workflow file for this run

name: release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
uses: kitao/pyxel/.github/workflows/build.yml@main
release:
runs-on: macos-12
needs: build
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Download wheels
uses: actions/download-artifact@v3
with:
name: pyxel-wheels
path: dist
- name: Get Pyxel version
run: |
PYXEL_VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\/v//')
echo "PYXEL_VERSION=${PYXEL_VERSION}" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: Pyxel ${{ env.PYXEL_VERSION }}
tag_name: ${{ github.ref }}
files: dist/*
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Publish wheels
run: |
pip install twine
twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Publish crates
run: |
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
cd rust/pyxel-platform
cargo publish
sleep 60
cd ../pyxel-engine
cargo publish
sleep 60
cd ../pyxel-wrapper
RUSTFLAGS="-C link-arg=-undefined -C link-arg=dynamic_lookup" cargo publish