Skip to content

Commit

Permalink
github: Update {download, upload}-artifact to v4
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
  • Loading branch information
heatd committed Nov 17, 2024
1 parent 922fc2a commit 1f8cbcb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:


- name: Download the x86_64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: x86_64-onyx-linux
Expand All @@ -54,19 +54,19 @@ jobs:
./scripts/create_disk_image.sh disk-image.img --bootable efi
- name: Upload a Build Artifact(Onyx.iso)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx ISO
path: Onyx.iso

- name: Upload a Build Artifact(kernel/vmonyx)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: vmonyx
path: kernel/vmonyx

- name: Upload a Build Artifact(Disk image)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Disk-image.img
path: disk-image.img
Expand All @@ -89,7 +89,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand All @@ -115,19 +115,19 @@ jobs:
./scripts/create_disk_image.sh disk-image-llvm.img --bootable efi
- name: Upload a Build Artifact(Onyx.iso)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx-iso-llvm
path: Onyx.iso

- name: Upload a Build Artifact(kernel/vmonyx)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: vmonyx-llvm
path: kernel/vmonyx

- name: Upload a Build Artifact(disk-image-llvm)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Disk-image-llvm.img
path: disk-image-llvm.img
Expand All @@ -147,7 +147,7 @@ jobs:


- name: Download the riscv64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: riscv64-onyx-linux
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
zstd -T0 -15 riscv64-onyx-image.tar
- name: Upload the riscv64 boot image
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (riscv64)
path: riscv64-onyx-image.tar.zst
Expand All @@ -199,7 +199,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
zstd -T0 -15 riscv64-onyx-image-llvm.tar
- name: Upload the riscv64 boot image (LLVM)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (riscv64) (llvm)
path: riscv64-onyx-image-llvm.tar.zst
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
zstd -T0 -15 minimal-sysroot-${{ matrix.target_arch }}.tar
- name: Upload the minimal sysroot
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: minimal-sysroot-${{ matrix.target_arch }}
path: minimal-sysroot-${{ matrix.target_arch }}.tar.zst
Expand All @@ -322,7 +322,7 @@ jobs:
submodules: "recursive"

- name: Download the minimal sysroot
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4

- name: Extract minimal sysroot
run: |
Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
mv ${{ env.toolchain_id_no_os }} toolchain_binaries-${{ matrix.toolchain }}
- name: Upload the toolchain
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: ${{ env.toolchain_id }}
path: ${{ env.toolchain_id }}.tar.zst
Expand All @@ -434,7 +434,7 @@ jobs:


- name: Download the arm64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: arm64-onyx-linux
Expand Down Expand Up @@ -463,7 +463,7 @@ jobs:
zstd -T0 -15 arm64-onyx-image.tar
- name: Upload the arm64 boot image
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (arm64)
path: arm64-onyx-image.tar.zst
Expand All @@ -487,7 +487,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand Down Expand Up @@ -517,7 +517,7 @@ jobs:
zstd -T0 -15 arm64-onyx-image-llvm.tar
- name: Upload the arm64 boot image (LLVM)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (arm64) (llvm)
path: arm64-onyx-image-llvm.tar.zst
Expand All @@ -537,7 +537,7 @@ jobs:


- name: Download the x86_64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: x86_64-onyx-linux
Expand Down Expand Up @@ -582,7 +582,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand Down Expand Up @@ -625,7 +625,7 @@ jobs:


- name: Download the riscv64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: riscv64-onyx-linux
Expand Down Expand Up @@ -669,7 +669,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python-version: '3.11.0' # Require the same version of python as Onyx builds, in order to ease the build

- name: Download the x86_64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: x86_64-onyx-linux
Expand All @@ -51,19 +51,19 @@ jobs:
./scripts/create_disk_image.sh disk-image.img --bootable efi
- name: Upload a Build Artifact(Onyx.iso)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx ISO
path: Onyx.iso

- name: Upload a Build Artifact(kernel/vmonyx)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: vmonyx
path: kernel/vmonyx

- name: Upload a Build Artifact(Disk image)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Disk-image.img
path: disk-image.img
Expand All @@ -86,7 +86,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand All @@ -113,19 +113,19 @@ jobs:
./scripts/create_disk_image.sh disk-image-llvm.img --bootable efi
- name: Upload a Build Artifact(Onyx.iso)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx-iso-llvm
path: Onyx.iso

- name: Upload a Build Artifact(kernel/vmonyx)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: vmonyx-llvm
path: kernel/vmonyx

- name: Upload a Build Artifact(disk-image-llvm)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Disk-image-llvm.img
path: disk-image-llvm.img
Expand All @@ -145,7 +145,7 @@ jobs:


- name: Download the riscv64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: riscv64-onyx-linux
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
zstd -T0 -15 riscv64-onyx-image.tar
- name: Upload the riscv64 boot image
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (riscv64)
path: riscv64-onyx-image.tar.zst
Expand All @@ -197,7 +197,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
zstd -T0 -15 riscv64-onyx-image-llvm.tar
- name: Upload the riscv64 boot image (LLVM)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (riscv64) (llvm)
path: riscv64-onyx-image-llvm.tar.zst
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
zstd -T0 -15 minimal-sysroot-${{ matrix.target_arch }}.tar
- name: Upload the minimal sysroot
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: minimal-sysroot-${{ matrix.target_arch }}
path: minimal-sysroot-${{ matrix.target_arch }}.tar.zst
Expand All @@ -319,7 +319,7 @@ jobs:
submodules: "recursive"

- name: Download the minimal sysroot
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4

- name: Extract minimal sysroot
run: |
Expand Down Expand Up @@ -410,7 +410,7 @@ jobs:
mv ${{ env.toolchain_id_no_os }} toolchain_binaries-${{ matrix.toolchain }}
- name: Upload the toolchain
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: ${{ env.toolchain_id }}
path: ${{ env.toolchain_id }}.tar.zst
Expand All @@ -430,7 +430,7 @@ jobs:


- name: Download the arm64-onyx-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: arm64-onyx-linux
Expand Down Expand Up @@ -459,7 +459,7 @@ jobs:
zstd -T0 -15 arm64-onyx-image.tar
- name: Upload the arm64 boot image
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (arm64)
path: arm64-onyx-image.tar.zst
Expand All @@ -483,7 +483,7 @@ jobs:

# Runs a single command using the runners shell
- name: Download the onyx-llvm-linux toolchain
uses: actions/download-artifact@v2.0.8
uses: actions/download-artifact@v4
with:
# Artifact name
name: onyx-llvm-linux
Expand Down Expand Up @@ -513,7 +513,7 @@ jobs:
zstd -T0 -15 arm64-onyx-image-llvm.tar
- name: Upload the arm64 boot image (LLVM)
uses: actions/upload-artifact@v2.1.4
uses: actions/upload-artifact@v4
with:
name: Onyx boot image (arm64) (llvm)
path: arm64-onyx-image-llvm.tar.zst

0 comments on commit 1f8cbcb

Please sign in to comment.