Skip to content

Commit

Permalink
feat(ci): Update most actions, and upgrade to g++-14 on Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
dwatteau committed Jun 2, 2024
1 parent d54aa1d commit 4b82949
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build-basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,24 @@ jobs:
- name: 'Ubuntu 20.04 (default settings)'
os: ubuntu-20.04
extraargs: ''
- name: 'Ubuntu 22.04 (g++ 12)'
os: ubuntu-22.04
# not ready yet for C++: -DCMAKE_CXX_FLAGS="-fanalyzer"'
extraargs: '-DCMAKE_CXX_COMPILER=g++-12'
- name: 'Ubuntu 24.04 (g++ 14)'
os: ubuntu-24.04
extraargs: '-DCMAKE_CXX_COMPILER=g++-14'
- name: 'Windows Server 2019 (win32)'
os: windows-2019
extraargs: '-DCMAKE_GENERATOR_PLATFORM=Win32'
- name: 'macOS 11 (x86_64 and arm64)'
os: macos-11
- name: 'macOS 12 (x86_64 and arm64)'
os: macos-12
extraargs: '-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: 'Install g++-12 (Ubuntu 22.04 only)'
if: matrix.os == 'ubuntu-22.04'
- name: 'Install g++-14 (Ubuntu 24.04 only)'
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt-get -qq update
sudo apt-get -qq install -o=Dpkg::Use-Pty=0 -y g++-12
sudo apt-get -qq install -o=Dpkg::Use-Pty=0 -y g++-14
sudo apt-get clean
- name: Print CMake version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-manpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install mandoc and print its version
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scan-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: cpp

- name: Build (autobuild)
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions .github/workflows/scan-msvc-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Configure CMake
run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Initialize MSVC Code Analysis
uses: microsoft/[email protected].0
uses: microsoft/[email protected].1
# Provide a unique ID to access the sarif output path
id: run-analysis
with:
Expand All @@ -34,6 +34,6 @@ jobs:
ruleset: .github/extra-conf/msvc-analysis-custom.ruleset

- name: Upload SARIF file to GitHub Code Scanning Alerts
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.run-analysis.outputs.sarif }}

0 comments on commit 4b82949

Please sign in to comment.