Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(toolchains): bump download-artifact, upload-artifact, checkout act… #1076

Merged
merged 3 commits into from
Mar 3, 2024
Merged
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
29 changes: 9 additions & 20 deletions .github/workflows/toolchains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Expand All @@ -17,7 +17,7 @@ jobs:
run: |
./src/docker/pull.sh

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
continue-on-error: true
with:
name: docker-cache
Expand All @@ -38,7 +38,7 @@ jobs:
docker save itkwasm/wasi-base:latest | xz -e9 -T0 > ./docker-cache/itk-wasm-wasi-base.tar.xz

- name: Cache docker results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docker-cache
path: ./docker-cache
Expand All @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Expand All @@ -59,31 +59,20 @@ jobs:
run: |
./src/docker/pull.sh

- uses: actions/download-artifact@v3
continue-on-error: true
with:
name: docker-cache
path: ./docker-cache
# - uses: actions/download-artifact@v4
# continue-on-error: true
# with:
# name: docker-cache
# path: ./docker-cache

- name: Build itk-wasm
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
if [[ -e ./docker-cache/itk-wasm-emscripten.tar.xz ]]; then xz -d -k < ./docker-cache/itk-wasm-emscripten.tar.xz | docker load ; fi
./src/docker/itk-wasm/build.sh
mkdir -p ./docker-cache
docker save itkwasm/emscripten:latest | xz -e9 -T0 > ./docker-cache/itk-wasm-emscripten.tar.xz

- 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 load ; fi
if [[ -e ./docker-cache/itk-wasm-wasi.tar.xz ]]; then xz -d -k < ./docker-cache/itk-wasm-wasi.tar.xz | docker load ; fi
./src/docker/itk-wasm/build.sh --with-wasi
mkdir -p ./docker-cache
docker save itkwasm/wasi:latest | xz -e9 -T0 > ./docker-cache/itk-wasm-wasi.tar.xz

- name: Cache docker results
uses: actions/upload-artifact@v3
with:
name: docker-cache
path: ./docker-cache
retention-days: 7
Loading