Skip to content

Commit 1157dc8

Browse files
committed
ci: improve GHA workflows + update actions/checkout to v5
1 parent d16f54c commit 1157dc8

File tree

5 files changed

+23
-6
lines changed

5 files changed

+23
-6
lines changed

.github/workflows/alpine.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
apk add git
1515
git config --global --add safe.directory "$GITHUB_WORKSPACE"
1616
# Checks-out the repository under $GITHUB_WORKSPACE.
17-
- uses: actions/checkout@v4
17+
- Name: Checkout
18+
uses: actions/checkout@v5
1819
with:
1920
fetch-depth: 0
2021
submodules: 'recursive'
22+
persist-credentials: false
2123
- name: Install packages
2224
run: |
2325
apk update

.github/workflows/alpine_arm.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,24 @@ jobs:
2626
run: |
2727
apk add nodejs
2828
sed -i 's~ID=alpine~ID=nopine~g' /etc/os-release
29-
cd /host/home/runner/runners/*/externals/
29+
cd /host/home/runner/actions-runner/*/externals/
3030
rm -rf node20/*
3131
mkdir node20/bin
3232
ln -s /usr/bin/node node20/bin/node
33+
# Fake Node.js 24 for actions/checkout@v5.
34+
# Currently, Alpine 3.22 has Node.js 22.16.0, but that seems to work,
35+
# too, because it looks like checkout is not using any stuff specific
36+
# to Node.js 24.
37+
rm -rf node24/*
38+
mkdir node24/bin
39+
ln -s /usr/bin/node node24/bin/node
3340
# Checks-out the repository under $GITHUB_WORKSPACE.
34-
- uses: actions/checkout@v4
41+
- name: Checkout
42+
uses: actions/checkout@v5
3543
with:
3644
fetch-depth: 0
3745
submodules: 'recursive'
46+
persist-credentials: false
3847
- name: Install packages
3948
run: |
4049
apk update

.github/workflows/clang.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ jobs:
1111
version: [14, 16, 18]
1212
steps:
1313
# Checks-out the repository under $GITHUB_WORKSPACE.
14-
- uses: actions/checkout@v4
14+
- name: Checkout
15+
uses: actions/checkout@v5
1516
with:
1617
submodules: 'recursive'
18+
persist-credentials: false
1719
- name: Install Debian packages
1820
run: |
1921
sudo apt-get update

.github/workflows/gcc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ jobs:
1111
version: [9, 12, 13, 14]
1212
steps:
1313
# Checks-out the repository under $GITHUB_WORKSPACE.
14-
- uses: actions/checkout@v4
14+
- name: Checkout
15+
uses: actions/checkout@v5
1516
with:
1617
submodules: 'recursive'
18+
persist-credentials: false
1719
- name: Install Debian packages
1820
run: |
1921
sudo apt-get update

.github/workflows/msys2.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ jobs:
1010
shell: msys2 {0}
1111
steps:
1212
# Checks-out the repository under $GITHUB_WORKSPACE.
13-
- uses: actions/checkout@v4
13+
- name: Checkout
14+
uses: actions/checkout@v5
1415
with:
1516
fetch-depth: 0
1617
submodules: 'recursive'
18+
persist-credentials: false
1719
- uses: msys2/setup-msys2@v2
1820
with:
1921
msystem: mingw64

0 commit comments

Comments
 (0)