Skip to content

Commit 96b98b8

Browse files
committed
Migrate artifact actions from to v4
1 parent 9d0cf29 commit 96b98b8

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.github/workflows/pull-request.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828

2929
- name: upload artifacts
3030
if: success()
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
33-
path: images/
33+
name: artifact-kernel-${{ matrix.arch }}-${{ matrix.board }}
34+
path: images/kernel-${{ matrix.arch }}-${{ matrix.board }}.tar.xz
3435

3536
pr-build-image:
3637
runs-on: ubuntu-latest
@@ -52,9 +53,10 @@ jobs:
5253

5354
- name: upload artifacts
5455
if: success()
55-
uses: actions/upload-artifact@v3
56+
uses: actions/upload-artifact@v4
5657
with:
57-
path: images/
58+
name: artifact-image-${{ matrix.arch }}-${{ matrix.name }}
59+
path: images/image-${{ matrix.arch }}-${{ matrix.name }}.tar.xz
5860

5961
pr-riscv64-test:
6062
runs-on: ubuntu-latest
@@ -63,9 +65,11 @@ jobs:
6365
steps:
6466
- uses: actions/checkout@v3
6567

66-
- uses: actions/download-artifact@v3
68+
- uses: actions/download-artifact@v4
6769
with:
6870
path: ./
71+
pattern: artifact-*
72+
merge-multiple: true
6973

7074
- name: test
7175
uses: ./
@@ -96,7 +100,7 @@ jobs:
96100
steps:
97101
- uses: actions/checkout@v3
98102

99-
- uses: actions/download-artifact@v3
103+
- uses: actions/download-artifact@v4
100104
with:
101105
path: ./
102106

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ jobs:
6565

6666
- name: upload artifacts
6767
if: success()
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
70-
path: images/
70+
name:: artifact-kernel-${{ matrix.arch }}-${{ matrix.board }}
71+
path: images/kernel-${{ matrix.arch }}-${{ matrix.board }}.tar.xz
7172

7273
build-image:
7374
runs-on: ubuntu-latest
@@ -91,9 +92,10 @@ jobs:
9192

9293
- name: upload artifacts
9394
if: success()
94-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@v4
9596
with:
96-
path: images/
97+
name: artifact-image-${{ matrix.arch }}-${{ matrix.name }}
98+
path: images/image-${{ matrix.arch }}-${{ matrix.name }}.tar.xz
9799

98100
send-to-releases:
99101
runs-on: ubuntu-latest
@@ -102,9 +104,11 @@ jobs:
102104
steps:
103105
- uses: actions/checkout@v3
104106

105-
- uses: actions/download-artifact@v3
107+
- uses: actions/download-artifact@v4
106108
with:
107109
path: ./
110+
pattern: artifact-*
111+
merge-multiple: true
108112

109113
- name: send to releases
110114
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)