build(deps): bump pyodide/pyodide-actions from e3edcb8db4f1ec4604e402013f3ae2ee9f114441 to 909846d1d14e9c2d755ec497dcd42a79f8525e99 in the github-actions group #2676
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Toolchains | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
OCI_EXE: docker | |
jobs: | |
build-itk-wasm-base: | |
name: "Build itk-wasm-base" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
- run: pixi run export-itk-wasm-env-vars | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
- name: Pull latest Docker images | |
run: | | |
./src/docker/pull.sh --no-debug | |
- uses: actions/download-artifact@v4 | |
continue-on-error: true | |
with: | |
name: docker-cache | |
path: ./docker-cache | |
- name: Build itk-wasm-base | |
run: | | |
if [[ -e ./docker-cache/itk-wasm-emscripten-base.tar.xz ]]; then xz -d -k < ./docker-cache/itk-wasm-emscripten-base.tar.xz | docker load ; fi | |
./src/docker/itk-wasm-base/build.sh | |
mkdir -p ./docker-cache | |
docker export itkwasm/emscripten-base:latest | xz -e9 -T0 > ./docker-cache/itk-wasm-emscripten-base.tar.xz | |
- name: Build itk-wasm-base | |
run: | | |
if [[ -e ./docker-cache/itk-wasm-wasi-base.tar.xz ]]; then xz -d -k < ./docker-cache/itk-wasm-wasi-base.tar.xz | docker load ; fi | |
./src/docker/itk-wasm-base/build.sh --with-wasi | |
mkdir -p ./docker-cache | |
docker export itkwasm/wasi-base:latest | xz -e9 -T0 > ./docker-cache/itk-wasm-wasi-base.tar.xz | |
- name: Cache docker results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docker-cache | |
path: ./docker-cache | |
retention-days: 7 | |
build-itk-wasm: | |
name: "Build itk-wasm" | |
needs: build-itk-wasm-base | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
- run: pixi run export-itk-wasm-env-vars | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
- name: Pull latest Docker images | |
run: | | |
./src/docker/pull.sh --no-debug | |
- uses: actions/download-artifact@v4 | |
continue-on-error: true | |
with: | |
name: docker-cache | |
path: ./docker-cache | |
- name: Build itk-wasm | |
run: | | |
sudo mkdir -p /var/lib/docker/tmp | |
if [[ -e ./docker-cache/itk-wasm-emscripten-base.tar.xz ]]; then xz -d -k < ./docker-cache/itk-wasm-emscripten-base.tar.xz | docker import - itkwasm/emscripten:latest ; fi | |
./src/docker/itk-wasm/build.sh | |
- name: Build itk-wasi | |
run: | | |
if [[ -e ./docker-cache/itk-wasm-wasi-base.tar.xz ]]; then xz -d -k < ./docker-cache/itk-wasm-wasi-base.tar.xz | docker import - itkwasm/wasi:latest ; fi | |
./src/docker/itk-wasm/build.sh --with-wasi |