Skip to content

Commit 59b2275

Browse files
committed
Modernize GitHub Actions workflows
1 parent bf209e0 commit 59b2275

4 files changed

Lines changed: 17 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,30 @@ jobs:
3838
triplet: x64-windows
3939
compiler: vs
4040
arch: x64
41-
os: windows-latest
41+
os: windows-2022
4242
generator: Ninja
4343
vcpkg_root: C:/vcpkg
4444
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
4545
- id: windows-x86-vs
4646
triplet: x86-windows
4747
compiler: vs
4848
arch: x86
49-
os: windows-latest
49+
os: windows-2022
5050
generator: Ninja
5151
vcpkg_root: C:/vcpkg
5252
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
5353
- id: windows-x64-static-vs
5454
triplet: x64-windows-static
5555
compiler: vs
5656
arch: x64
57-
os: windows-latest
57+
os: windows-2022
5858
generator: Ninja
5959
vcpkg_root: C:/vcpkg
6060
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
6161
- id: windows-x64-mingw
6262
triplet: x64-windows
6363
compiler: mingw
64-
os: windows-latest
64+
os: windows-2022
6565
generator: Ninja
6666
vcpkg_root: C:/vcpkg
6767
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
@@ -72,11 +72,11 @@ jobs:
7272
VCPKG_ROOT: ${{matrix.vcpkg_root}}
7373

7474
steps:
75-
- uses: actions/checkout@v4
75+
- uses: actions/checkout@v5
7676

7777
- name: Cache the vcpkg archives
7878
if: matrix.cache != ''
79-
uses: actions/cache@v4
79+
uses: actions/cache@v5
8080
with:
8181
path: ${{matrix.cache}}
8282
key: ${{matrix.id}}-${{hashFiles('vcpkg.json')}}
@@ -86,7 +86,7 @@ jobs:
8686
8787
- name: Configure Visual Studio
8888
if: matrix.compiler == 'vs'
89-
uses: ilammy/msvc-dev-cmd@v1
89+
uses: step-security/msvc-dev-cmd@v1
9090
with:
9191
arch: ${{matrix.arch}}
9292

@@ -103,7 +103,7 @@ jobs:
103103

104104
- name: Set up Python (macOS)
105105
if: runner.os == 'macOS'
106-
uses: actions/setup-python@v4
106+
uses: actions/setup-python@v6
107107
with:
108108
python-version: '3.13'
109109
update-environment: false
@@ -127,7 +127,7 @@ jobs:
127127

128128
- name: Setup the oldest supported version of cmake (macOS)
129129
if: runner.os == 'macOS'
130-
uses: jwlawson/actions-setup-cmake@v2.0
130+
uses: jwlawson/actions-setup-cmake@v2.2.0
131131

132132
- name: Install python3 cryptography module (Linux)
133133
if: runner.os == 'Linux'
@@ -211,7 +211,7 @@ jobs:
211211
ctest -C ${{env.BUILD_TYPE}}
212212
213213
- name: Upload the errors
214-
uses: actions/upload-artifact@v4
214+
uses: actions/upload-artifact@v6
215215
if: failure()
216216
with:
217217
name: errors-${{matrix.id}}
@@ -225,7 +225,7 @@ jobs:
225225
run: cmake --install ${{github.workspace}}/build
226226

227227
- name: Upload the executables
228-
uses: actions/upload-artifact@v4
228+
uses: actions/upload-artifact@v6
229229
with:
230230
name: ${{env.version}}-${{matrix.id}}
231231
path: ${{github.workspace}}/dist

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,21 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v3
32+
uses: github/codeql-action/init@v4
3333
with:
3434
languages: ${{ matrix.language }}
35+
build-mode: none
3536

3637
# If you wish to specify custom queries, you can do so here or in a config file.
3738
# By default, queries listed here will override any specified in a config file.
3839
# Prefix the list here with "+" to use these queries and those in the config file.
3940

4041
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4142
# queries: security-extended,security-and-quality
42-
43-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
44-
# If this step fails, then you should remove it and run the build manually (see below)
45-
- name: Autobuild
46-
uses: github/codeql-action/autobuild@v3
47-
48-
# ℹ️ Command-line programs to run using the OS shell.
49-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
50-
51-
# If the Autobuild fails above, remove it and uncomment the following three lines.
52-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
53-
54-
# - run: |
55-
# echo "Run, Build Application using script"
56-
# ./location_of_script_within_repo/buildscript.sh
5743

5844
- name: Perform CodeQL Analysis
59-
uses: github/codeql-action/analyze@v3
45+
uses: github/codeql-action/analyze@v4

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
- uses: codespell-project/actions-codespell@master
1515
with:
1616
skip: '*.pem'

.github/workflows/coverity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
env:
1111
token: ${{secrets.COVERITY_SCAN_TOKEN}}
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
if: env.token
1515
- name: Get ready for scanning
1616
if: env.token

0 commit comments

Comments
 (0)