21
21
matrix : ${{ steps.set-matrix.outputs.matrix }}
22
22
is-copr-enabled : ${{ steps.is-copr-enabled.outputs.defined }}
23
23
steps :
24
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
25
25
with :
26
26
ref : ${{ github.ref }}
27
27
45
45
- name : Install deps
46
46
run : dnf install -y git make python3
47
47
48
- - uses : actions/checkout@v3
48
+ - uses : actions/checkout@v4
49
49
with :
50
50
ref : ${{ github.ref }}
51
51
fetch-depth : 0
83
83
mv fapolicy-analyzer-${spec_version}.tar.gz fapolicy-analyzer-${patched_version}.tar.gz
84
84
85
85
- name : Upload
86
- uses : actions/upload-artifact@v3
86
+ uses : actions/upload-artifact@v4
87
87
with :
88
88
name : source0
89
89
path : |
@@ -102,15 +102,13 @@ jobs:
102
102
run : |
103
103
dnf install -y git dnf5-plugins dnf-plugins-core cargo2rpm
104
104
105
- - uses : actions/checkout@v3
105
+ - uses : actions/checkout@v4
106
106
with :
107
107
ref : ${{ github.ref }}
108
108
fetch-depth : 0
109
109
110
110
- name : Adjust spec
111
111
run : |
112
- # disable dev-tools crate
113
- sed -i '/tools/d' Cargo.toml
114
112
# generate build deps with cargo2rpm
115
113
cargo2rpm -p Cargo.toml buildrequires | while read line; do
116
114
grep -n "BuildRequires:" fapolicy-analyzer.spec | head -n1 | cut -d: -f1 | xargs -I{} sed -i "{}iBuildRequires: $line" fapolicy-analyzer.spec
@@ -126,7 +124,7 @@ jobs:
126
124
scripts/srpm/vendor-rs.sh
127
125
128
126
- name : Upload tarball
129
- uses : actions/upload-artifact@v3
127
+ uses : actions/upload-artifact@v4
130
128
with :
131
129
name : crates0
132
130
path : |
@@ -152,7 +150,7 @@ jobs:
152
150
- name : Install Git
153
151
run : dnf install -y git
154
152
155
- - uses : actions/checkout@v3
153
+ - uses : actions/checkout@v4
156
154
with :
157
155
ref : ${{ github.ref }}
158
156
fetch-depth : 0
@@ -214,14 +212,14 @@ jobs:
214
212
make -f .copr/Makefile dnf OS_ID=${{ matrix.props.platform }}
215
213
216
214
- name : Fetch Source0 tarball
217
- uses : actions/download-artifact@v3
215
+ uses : actions/download-artifact@v4
218
216
with :
219
217
name : source0
220
218
path : /tmp/rpmbuild/SOURCES/
221
219
222
220
- name : Fetch Crates0 tarball
223
221
if : startsWith(matrix.props.dist, 'el')
224
- uses : actions/download-artifact@v3
222
+ uses : actions/download-artifact@v4
225
223
with :
226
224
name : crates0
227
225
path : /tmp/rpmbuild/SOURCES/
@@ -259,16 +257,16 @@ jobs:
259
257
mv /tmp/rpmbuild/SOURCES/vendor-rs-${version}.tar.gz /tmp/archives/
260
258
261
259
- name : Upload Tarballs
262
- uses : actions/upload-artifact@v3
260
+ uses : actions/upload-artifact@v4
263
261
with :
264
- name : tarball-artifacts
262
+ name : tarball-artifacts-${{ matrix.props.dist }}
265
263
path : |
266
264
/tmp/archives/*.tar.gz
267
265
268
266
- name : Upload SRPMs
269
- uses : actions/upload-artifact@v3
267
+ uses : actions/upload-artifact@v4
270
268
with :
271
- name : srpm-artifacts
269
+ name : srpm-artifacts-${{ matrix.props.dist }}
272
270
path : |
273
271
/tmp/archives/*.src.rpm
274
272
@@ -291,9 +289,9 @@ jobs:
291
289
dnf install -y copr-cli
292
290
293
291
- name : Download srpm artifacts
294
- uses : actions/download-artifact@v3
292
+ uses : actions/download-artifact@v4
295
293
with :
296
- name : srpm-artifacts
294
+ name : srpm-artifacts-${{ matrix.props.dist }}
297
295
path : /tmp/
298
296
299
297
- name : Checksum artifacts
@@ -325,21 +323,21 @@ jobs:
325
323
strategy :
326
324
matrix : ${{ fromJson(needs.config.outputs.matrix )}}
327
325
steps :
328
- - uses : actions/checkout@v3
326
+ - uses : actions/checkout@v4
329
327
with :
330
328
ref : ${{ github.ref }}
331
329
332
330
- name : Download srpm artifacts
333
- uses : actions/download-artifact@v3
331
+ uses : actions/download-artifact@v4
334
332
with :
335
- name : srpm-artifacts
333
+ name : srpm-artifacts-${{ matrix.props.dist }}
336
334
path : /tmp/src/
337
335
338
336
- name : Download tarball artifacts
339
337
if : startsWith(matrix.props.dist, 'el')
340
- uses : actions/download-artifact@v3
338
+ uses : actions/download-artifact@v4
341
339
with :
342
- name : tarball-artifacts
340
+ name : tarball-artifacts-${{ matrix.props.dist }}
343
341
path : /tmp/src/
344
342
345
343
- name : Checksum artifacts
@@ -382,9 +380,9 @@ jobs:
382
380
ls | grep -v -e debug -e log | xargs mv -t /tmp/archives
383
381
384
382
- name : Upload RPMs
385
- uses : actions/upload-artifact@v3
383
+ uses : actions/upload-artifact@v4
386
384
with :
387
- name : rpm-artifacts
385
+ name : rpm-artifacts-${{ matrix.props.dist }}
388
386
path : |
389
387
/tmp/archives/*.x86_64.rpm
390
388
@@ -397,14 +395,14 @@ jobs:
397
395
matrix : ${{ fromJson(needs.config.outputs.matrix )}}
398
396
continue-on-error : ${{ matrix.props.prerelease }}
399
397
steps :
400
- - uses : actions/checkout@v3
398
+ - uses : actions/checkout@v4
401
399
with :
402
400
ref : ${{ github.ref }}
403
401
404
402
- name : Download rpm artifacts
405
- uses : actions/download-artifact@v3
403
+ uses : actions/download-artifact@v4
406
404
with :
407
- name : rpm-artifacts
405
+ name : rpm-artifacts-${{ matrix.props.dist }}
408
406
path : /tmp/src/
409
407
410
408
- name : Checksum artifacts
@@ -431,12 +429,12 @@ jobs:
431
429
if : startsWith(github.ref, 'refs/tags/v')
432
430
runs-on : ubuntu-20.04
433
431
steps :
434
- - uses : actions/checkout@v3
432
+ - uses : actions/checkout@v4
435
433
with :
436
434
ref : ${{ github.ref }}
437
435
438
436
- name : Download artifacts
439
- uses : actions/download-artifact@v3
437
+ uses : actions/download-artifact@v4
440
438
with :
441
439
path : /tmp/archives/
442
440
0 commit comments