From d7b283ed327f9c2e46643014a7b1fbdbf9fc9e9c Mon Sep 17 00:00:00 2001 From: guangli-dai Date: Tue, 21 Apr 2026 10:54:59 -0700 Subject: [PATCH] Update Github Actions generation script and upgrade freeBSD actions. --- .github/workflows/freebsd-ci.yml | 2 +- scripts/gen_gh_actions.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/freebsd-ci.yml b/.github/workflows/freebsd-ci.yml index 6c702d88..de444f69 100644 --- a/.github/workflows/freebsd-ci.yml +++ b/.github/workflows/freebsd-ci.yml @@ -25,7 +25,7 @@ jobs: name: FreeBSD (${{ matrix.arch }}, debug=${{ matrix.debug }}, prof=${{ matrix.prof }}${{ matrix.uncommon && ', uncommon' || '' }}) steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 1 diff --git a/scripts/gen_gh_actions.py b/scripts/gen_gh_actions.py index 4c5474ab..92ed0ae0 100755 --- a/scripts/gen_gh_actions.py +++ b/scripts/gen_gh_actions.py @@ -287,7 +287,7 @@ def generate_linux_job(arch): job += f""" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Show OS version run: | @@ -302,7 +302,7 @@ def generate_linux_job(arch): cat /etc/os-release || true echo "" echo "=== CPU Info ===" - lscpu | grep -E "Architecture|CPU op-mode|Byte Order|CPU\(s\):" || true + lscpu | grep -E "Architecture|CPU op-mode|Byte Order|CPU\\(s\\):" || true - name: Install dependencies (32-bit) if: matrix.env.CROSS_COMPILE_32BIT == 'yes' @@ -387,7 +387,7 @@ def generate_macos_job(arch): job += f""" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Show OS version run: | @@ -469,7 +469,7 @@ def generate_windows_job(arch): job += f""" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Show OS version shell: cmd @@ -590,7 +590,7 @@ def generate_freebsd_job(arch): name: FreeBSD (${{{{ matrix.arch }}}}, debug=${{{{ matrix.debug }}}}, prof=${{{{ matrix.prof }}}}${{{{ matrix.uncommon && ', uncommon' || '' }}}}) steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 1