mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-30 19:46:15 +00:00
ci: bump Node 20 actions to Node 24 majors
Clear the GitHub Node 20 runner deprecation across CI, AUR, and the Linux/macOS/Windows packaging workflows: actions/checkout v4 -> v6 actions/cache v4 -> v5 actions/upload-artifact v4 -> v7 actions/download-artifact v4 -> v8 package-openwrt.yml is handled separately on fix/openwrt-checksums.
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Patch PKGBUILD-git b2sums for local assets
|
- name: Patch PKGBUILD-git b2sums for local assets
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
pacman -Sy --noconfirm --needed base-devel namcap git curl
|
pacman -Sy --noconfirm --needed base-devel namcap git curl
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Resolve package version
|
- name: Resolve package version
|
||||||
id: ver
|
id: ver
|
||||||
@@ -176,7 +176,7 @@ jobs:
|
|||||||
echo "version=${TAG#v}" >> "$GITHUB_OUTPUT"
|
echo "version=${TAG#v}" >> "$GITHUB_OUTPUT"
|
||||||
echo "pkgrel=${PKGREL}" >> "$GITHUB_OUTPUT"
|
echo "pkgrel=${PKGREL}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.tag.outputs.tag }}
|
ref: ${{ steps.tag.outputs.tag }}
|
||||||
|
|
||||||
|
|||||||
+16
-16
@@ -56,7 +56,7 @@ jobs:
|
|||||||
name: Format check
|
name: Format check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
name: Clippy
|
name: Clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev
|
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
@@ -77,7 +77,7 @@ jobs:
|
|||||||
cache: false
|
cache: false
|
||||||
rustflags: ''
|
rustflags: ''
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -102,7 +102,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set SOURCE_DATE_EPOCH from git (Unix)
|
- name: Set SOURCE_DATE_EPOCH from git (Unix)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
@@ -130,7 +130,7 @@ jobs:
|
|||||||
rustflags: ''
|
rustflags: ''
|
||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -159,7 +159,7 @@ jobs:
|
|||||||
# Upload the Linux binary so integration jobs can use it without rebuilding
|
# Upload the Linux binary so integration jobs can use it without rebuilding
|
||||||
- name: Upload Linux binary
|
- name: Upload Linux binary
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: fips-linux
|
name: fips-linux
|
||||||
path: |
|
path: |
|
||||||
@@ -180,7 +180,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set SOURCE_DATE_EPOCH from git
|
- name: Set SOURCE_DATE_EPOCH from git
|
||||||
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
||||||
@@ -195,7 +195,7 @@ jobs:
|
|||||||
rustflags: ''
|
rustflags: ''
|
||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -236,7 +236,7 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set SOURCE_DATE_EPOCH from git
|
- name: Set SOURCE_DATE_EPOCH from git
|
||||||
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
||||||
@@ -248,7 +248,7 @@ jobs:
|
|||||||
rustflags: ''
|
rustflags: ''
|
||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -271,7 +271,7 @@ jobs:
|
|||||||
name: Unit tests (Windows)
|
name: Unit tests (Windows)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
@@ -280,7 +280,7 @@ jobs:
|
|||||||
rustflags: ''
|
rustflags: ''
|
||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -309,7 +309,7 @@ jobs:
|
|||||||
name: PowerShell lint (Windows packaging)
|
name: PowerShell lint (Windows packaging)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Run PSScriptAnalyzer
|
- name: Run PSScriptAnalyzer
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -478,11 +478,11 @@ jobs:
|
|||||||
type: dns-resolver
|
type: dns-resolver
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
# Fetch the pre-built Linux binary from job 1
|
# Fetch the pre-built Linux binary from job 1
|
||||||
- name: Download Linux binary
|
- name: Download Linux binary
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: fips-linux
|
name: fips-linux
|
||||||
path: _bin
|
path: _bin
|
||||||
@@ -668,7 +668,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload sim results on failure (chaos)
|
- name: Upload sim results on failure (chaos)
|
||||||
if: matrix.type == 'chaos' && failure()
|
if: matrix.type == 'chaos' && failure()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: sim-results-${{ matrix.scenario }}
|
name: sim-results-${{ matrix.scenario }}
|
||||||
path: testing/chaos/sim-results/
|
path: testing/chaos/sim-results/
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
linux_package_version: ${{ steps.linux_version.outputs.linux_package_version }}
|
linux_package_version: ${{ steps.linux_version.outputs.linux_package_version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
deb_arch: arm64
|
deb_arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
if: ${{ env.ACT != 'true' }}
|
if: ${{ env.ACT != 'true' }}
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -140,7 +140,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload artifact (GitHub only)
|
- name: Upload artifact (GitHub only)
|
||||||
if: ${{ env.ACT != 'true' }}
|
if: ${{ env.ACT != 'true' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: fips_${{ needs.determine-versioning.outputs.linux_package_version }}_${{ matrix.artifact_arch }}_linux
|
name: fips_${{ needs.determine-versioning.outputs.linux_package_version }}_${{ matrix.artifact_arch }}_linux
|
||||||
path: |
|
path: |
|
||||||
@@ -164,7 +164,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download Linux artifacts
|
- name: Download Linux artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
macos_package_version: ${{ steps.macos_version.outputs.macos_package_version }}
|
macos_package_version: ${{ steps.macos_version.outputs.macos_package_version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
rustflags: ''
|
rustflags: ''
|
||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -209,7 +209,7 @@ jobs:
|
|||||||
( cd "$(dirname "$PKG")" && shasum -a 256 "$(basename "$PKG")" | tee "$(basename "$PKG").sha256" )
|
( cd "$(dirname "$PKG")" && shasum -a 256 "$(basename "$PKG")" | tee "$(basename "$PKG").sha256" )
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: fips_${{ needs.determine-versioning.outputs.macos_package_version }}_${{ matrix.arch }}_macos
|
name: fips_${{ needs.determine-versioning.outputs.macos_package_version }}_${{ matrix.arch }}_macos
|
||||||
path: |
|
path: |
|
||||||
@@ -229,7 +229,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download macOS artifacts
|
- name: Download macOS artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
@@ -283,7 +283,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download macOS artifacts
|
- name: Download macOS artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
package_version: ${{ steps.version.outputs.package_version }}
|
package_version: ${{ steps.version.outputs.package_version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
needs: determine-versioning
|
needs: determine-versioning
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
rustflags: ''
|
rustflags: ''
|
||||||
|
|
||||||
- name: Cache Cargo registry + build
|
- name: Cache Cargo registry + build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: fips_${{ needs.determine-versioning.outputs.package_version }}_x86_64_windows
|
name: fips_${{ needs.determine-versioning.outputs.package_version }}_x86_64_windows
|
||||||
path: deploy/fips-*-windows-*.zip
|
path: deploy/fips-*-windows-*.zip
|
||||||
@@ -170,7 +170,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download Windows artifacts
|
- name: Download Windows artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|||||||
Reference in New Issue
Block a user