Skip to content

Commit d062c01

Browse files
egbickerjw3
andauthored
CI updates for tools build and node (#1032)
Workflow updates - increase versions on deprecated actions - fixes the glibc issue in the tools build Closes #1028 Closes #1030 --------- Co-authored-by: John Wass <[email protected]>
1 parent 2610dda commit d062c01

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

.github/workflows/common.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: License header check
1616
runs-on: ubuntu-20.04
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Check for required headers
2020
run: |
2121
! grep -R -L --exclude-dir=vendor \

.github/workflows/coverity.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
coverity:
1010
runs-on: ubuntu-20.04
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- uses: vapier/coverity-scan-action@v1
1414
with:
1515
command: --no-command --fs-capture-search fapolicy_analyzer

.github/workflows/pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
working-directory: doc/site
6060

6161
- name: Upload artifact
62-
uses: actions/upload-pages-artifact@v2
62+
uses: actions/upload-pages-artifact@v3
6363
with:
6464
path: ./doc/site/public
6565

.github/workflows/pdf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
sudo apt update
1515
sudo apt install git pandoc texlive-latex-recommended texlive-latex-extra
1616
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.ref }}
2020
fetch-depth: 0

.github/workflows/python.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
ruff:
1515
runs-on: ubuntu-20.04
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- uses: chartboost/ruff-action@v1
1919
with:
2020
src: fapolicy_analyzer
@@ -26,7 +26,7 @@ jobs:
2626
matrix:
2727
python-version: ["3.9", "3.10", "3.11", "3.12"]
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: Install requirements
3131
run: |
3232
sudo apt-get update

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
sudo apt update
1616
sudo apt install -y git
1717
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
ref: ${{ github.ref }}
2121
fetch-depth: 0

.github/workflows/rpm.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix: ${{ steps.set-matrix.outputs.matrix }}
2222
is-copr-enabled: ${{ steps.is-copr-enabled.outputs.defined }}
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
with:
2626
ref: ${{ github.ref }}
2727

@@ -45,7 +45,7 @@ jobs:
4545
- name: Install deps
4646
run: dnf install -y git make python3
4747

48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
ref: ${{ github.ref }}
5151
fetch-depth: 0
@@ -83,7 +83,7 @@ jobs:
8383
mv fapolicy-analyzer-${spec_version}.tar.gz fapolicy-analyzer-${patched_version}.tar.gz
8484
8585
- name: Upload
86-
uses: actions/upload-artifact@v3
86+
uses: actions/upload-artifact@v4
8787
with:
8888
name: source0
8989
path: |
@@ -102,7 +102,7 @@ jobs:
102102
run: |
103103
dnf install -y git dnf5-plugins dnf-plugins-core cargo2rpm
104104
105-
- uses: actions/checkout@v3
105+
- uses: actions/checkout@v4
106106
with:
107107
ref: ${{ github.ref }}
108108
fetch-depth: 0
@@ -126,7 +126,7 @@ jobs:
126126
scripts/srpm/vendor-rs.sh
127127
128128
- name: Upload tarball
129-
uses: actions/upload-artifact@v3
129+
uses: actions/upload-artifact@v4
130130
with:
131131
name: crates0
132132
path: |
@@ -152,7 +152,7 @@ jobs:
152152
- name: Install Git
153153
run: dnf install -y git
154154

155-
- uses: actions/checkout@v3
155+
- uses: actions/checkout@v4
156156
with:
157157
ref: ${{ github.ref }}
158158
fetch-depth: 0
@@ -214,14 +214,14 @@ jobs:
214214
make -f .copr/Makefile dnf OS_ID=${{ matrix.props.platform }}
215215
216216
- name: Fetch Source0 tarball
217-
uses: actions/download-artifact@v3
217+
uses: actions/download-artifact@v4
218218
with:
219219
name: source0
220220
path: /tmp/rpmbuild/SOURCES/
221221

222222
- name: Fetch Crates0 tarball
223223
if: startsWith(matrix.props.dist, 'el')
224-
uses: actions/download-artifact@v3
224+
uses: actions/download-artifact@v4
225225
with:
226226
name: crates0
227227
path: /tmp/rpmbuild/SOURCES/
@@ -259,16 +259,16 @@ jobs:
259259
mv /tmp/rpmbuild/SOURCES/vendor-rs-${version}.tar.gz /tmp/archives/
260260
261261
- name: Upload Tarballs
262-
uses: actions/upload-artifact@v3
262+
uses: actions/upload-artifact@v4
263263
with:
264-
name: tarball-artifacts
264+
name: tarball-artifacts-${{ matrix.props.dist }}
265265
path: |
266266
/tmp/archives/*.tar.gz
267267
268268
- name: Upload SRPMs
269-
uses: actions/upload-artifact@v3
269+
uses: actions/upload-artifact@v4
270270
with:
271-
name: srpm-artifacts
271+
name: srpm-artifacts-${{ matrix.props.dist }}
272272
path: |
273273
/tmp/archives/*.src.rpm
274274
@@ -291,9 +291,9 @@ jobs:
291291
dnf install -y copr-cli
292292
293293
- name: Download srpm artifacts
294-
uses: actions/download-artifact@v3
294+
uses: actions/download-artifact@v4
295295
with:
296-
name: srpm-artifacts
296+
name: srpm-artifacts-${{ matrix.props.dist }}
297297
path: /tmp/
298298

299299
- name: Checksum artifacts
@@ -325,21 +325,21 @@ jobs:
325325
strategy:
326326
matrix: ${{ fromJson(needs.config.outputs.matrix )}}
327327
steps:
328-
- uses: actions/checkout@v3
328+
- uses: actions/checkout@v4
329329
with:
330330
ref: ${{ github.ref }}
331331

332332
- name: Download srpm artifacts
333-
uses: actions/download-artifact@v3
333+
uses: actions/download-artifact@v4
334334
with:
335-
name: srpm-artifacts
335+
name: srpm-artifacts-${{ matrix.props.dist }}
336336
path: /tmp/src/
337337

338338
- name: Download tarball artifacts
339339
if: startsWith(matrix.props.dist, 'el')
340-
uses: actions/download-artifact@v3
340+
uses: actions/download-artifact@v4
341341
with:
342-
name: tarball-artifacts
342+
name: tarball-artifacts-${{ matrix.props.dist }}
343343
path: /tmp/src/
344344

345345
- name: Checksum artifacts
@@ -382,9 +382,9 @@ jobs:
382382
ls | grep -v -e debug -e log | xargs mv -t /tmp/archives
383383
384384
- name: Upload RPMs
385-
uses: actions/upload-artifact@v3
385+
uses: actions/upload-artifact@v4
386386
with:
387-
name: rpm-artifacts
387+
name: rpm-artifacts-${{ matrix.props.dist }}
388388
path: |
389389
/tmp/archives/*.x86_64.rpm
390390
@@ -397,14 +397,14 @@ jobs:
397397
matrix: ${{ fromJson(needs.config.outputs.matrix )}}
398398
continue-on-error: ${{ matrix.props.prerelease }}
399399
steps:
400-
- uses: actions/checkout@v3
400+
- uses: actions/checkout@v4
401401
with:
402402
ref: ${{ github.ref }}
403403

404404
- name: Download rpm artifacts
405-
uses: actions/download-artifact@v3
405+
uses: actions/download-artifact@v4
406406
with:
407-
name: rpm-artifacts
407+
name: rpm-artifacts-${{ matrix.props.dist }}
408408
path: /tmp/src/
409409

410410
- name: Checksum artifacts
@@ -431,12 +431,12 @@ jobs:
431431
if: startsWith(github.ref, 'refs/tags/v')
432432
runs-on: ubuntu-20.04
433433
steps:
434-
- uses: actions/checkout@v3
434+
- uses: actions/checkout@v4
435435
with:
436436
ref: ${{ github.ref }}
437437

438438
- name: Download artifacts
439-
uses: actions/download-artifact@v3
439+
uses: actions/download-artifact@v4
440440
with:
441441
path: /tmp/archives/
442442

.github/workflows/rust.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Rustfmt
1616
runs-on: ubuntu-20.04
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- uses: dtolnay/rust-toolchain@v1
2020
with:
2121
components: rustfmt
@@ -32,7 +32,7 @@ jobs:
3232
name: Check
3333
runs-on: ubuntu-20.04
3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3636
- name: Install package dependencies
3737
run: |
3838
sudo apt-get update
@@ -48,7 +48,7 @@ jobs:
4848
name: Clippy
4949
runs-on: ubuntu-20.04
5050
steps:
51-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5252

5353
- name: Install package dependencies
5454
run: |
@@ -101,7 +101,7 @@ jobs:
101101
name: Test Suite
102102
runs-on: ubuntu-20.04
103103
steps:
104-
- uses: actions/checkout@v3
104+
- uses: actions/checkout@v4
105105
- name: Install package dependencies
106106
run: |
107107
sudo apt-get update

.github/workflows/tools.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
build:
1717
name: Build
1818
runs-on: ubuntu-20.04
19-
# 28 has glibc-2.27, compatible >= el8, fc, ubuntu 18.04
20-
container: fedora:28
19+
# 29 has glibc-2.28, compatible >= el8, fc, ubuntu 20.04
20+
container: fedora:29
2121
steps:
2222
- name: Install build deps
2323
run: |
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
toolchain: 1.71.1
3131

32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
with:
3434
ref: ${{ github.ref }}
3535
fetch-depth: 0
@@ -48,7 +48,7 @@ jobs:
4848
mv target/release/faprofiler /tmp/tools/faprofiler
4949
5050
- name: Archive Tools
51-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5252
with:
5353
name: fapolicy-analyzer-tools
5454
path: /tmp/tools/*

0 commit comments

Comments
 (0)