Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,16 @@ jobs:
tar xf wasi-sdk-${WASI_SDK_VERSION}.0-x86_64-linux.tar.gz
mv wasi-sdk-${WASI_SDK_VERSION}.0-x86_64-linux /opt/wasi-sdk

- name: Cache CPython
id: cache-cpython-wasi
uses: actions/cache@v4
with:
path: cpython/builddir/wasi
key: cpython-wasi-v1
enableCrossOsArchive: true

- name: Build
shell: bash
run: cargo build --release

- name: Upload CPython builddir
uses: actions/upload-artifact@v4
with:
name: cpython-wasi
path: cpython/builddir/wasi

release:
name: Build and release
needs: linux
Expand Down Expand Up @@ -195,12 +193,10 @@ jobs:
run: echo "WASI_SDK_PATH=$(cygpath -m /tmp/wasi-sdk-${WASI_SDK_VERSION}.0-${{ matrix.config.wasiSDK }})" >> ${GITHUB_ENV}

- name: Restore CPython
id: cache-cpython-wasi
uses: actions/cache/restore@v4
uses: actions/download-artifact@v5
with:
name: cpython-wasi
path: cpython/builddir/wasi
key: cpython-wasi-v1
enableCrossOsArchive: true

- name: Build wheels
uses: PyO3/maturin-action@v1
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,16 @@ jobs:
tar xf wasi-sdk-${WASI_SDK_VERSION}.0-x86_64-linux.tar.gz
mv wasi-sdk-${WASI_SDK_VERSION}.0-x86_64-linux /opt/wasi-sdk

- name: Cache CPython
id: cache-cpython-wasi
uses: actions/cache@v4
with:
path: cpython/builddir/wasi
key: cpython-wasi-v1
enableCrossOsArchive: true

- name: Build
shell: bash
run: cargo build --release

- name: Upload CPython builddir
uses: actions/upload-artifact@v4
with:
name: cpython-wasi
path: cpython/builddir/wasi

test:
name: Test
needs: linux
Expand Down Expand Up @@ -125,12 +123,10 @@ jobs:
run: echo "WASI_SDK_PATH=$(cygpath -m /tmp/wasi-sdk-${WASI_SDK_VERSION}.0-${{ matrix.config.wasiSDK }})" >> ${GITHUB_ENV}

- name: Restore CPython
id: cache-cpython-wasi
uses: actions/cache/restore@v4
uses: actions/download-artifact@v5
with:
name: cpython-wasi
path: cpython/builddir/wasi
key: cpython-wasi-v1
enableCrossOsArchive: true

- name: Lint
shell: bash
Expand Down
Loading