fix: test on Ubuntu 24.04 + add default versions for ubuntu 24

This commit is contained in:
Amin Yahyaabadi 2024-08-07 16:16:49 -07:00
parent 75540d0976
commit 7d9eec942d
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
7 changed files with 23 additions and 12 deletions

View File

@ -15,14 +15,14 @@ concurrency:
jobs: jobs:
Build: Build:
runs-on: ubuntu-22.04 runs-on: ${{ matrix.os }}
name: Build name: Build
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- ubuntu-22.04 - ubuntu-24.04
node: node:
- 22 - 22
pnpm: pnpm:
@ -92,7 +92,7 @@ jobs:
matrix: matrix:
os: os:
- windows-2022 - windows-2022
- ubuntu-22.04 - ubuntu-24.04
- macos-13 - macos-13
- macos-12 - macos-12
node: node:
@ -156,6 +156,7 @@ jobs:
os: os:
- windows-2022 - windows-2022
- windows-2019 - windows-2019
- ubuntu-24.04
- ubuntu-22.04 - ubuntu-22.04
- ubuntu-20.04 - ubuntu-20.04
- macos-13 - macos-13
@ -234,7 +235,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- ubuntu-22.04 - ubuntu-24.04
node: node:
- 22 - 22
pnpm: pnpm:
@ -282,7 +283,7 @@ jobs:
Release: Release:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
needs: [Build, BuildExecutable, Test, Docker] needs: [Build, BuildExecutable, Test, Docker]
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Download All Artifacts - name: Download All Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3

View File

@ -8,7 +8,7 @@ Setting up a **cross-platform** environment for building and testing C++/C proje
`setup-cpp` can be used locally from terminal, from CI services like GitHub Actions and GitLab Pipelines, and inside containers like Docker. `setup-cpp` can be used locally from terminal, from CI services like GitHub Actions and GitLab Pipelines, and inside containers like Docker.
`setup-cpp` is supported on many platforms. It is continuously tested on several configurations including Windows (11, 10, 2022, 2019), Linux (Ubuntu 22.04, Ubuntu 20.04, Fedora, ArchLinux), and macOS (13, 12, 11, 10.15). `setup-cpp` is backed by unit tests for each tool and integration tests for compiling cpp projects. `setup-cpp` is supported on many platforms. It is continuously tested on several configurations including Windows (11, 10, 2022, 2019), Linux (Ubuntu 24.0, 22.04, 20.04, 18.04, Fedora, ArchLinux), and macOS (13, 12, 11, 10.15). `setup-cpp` is backed by unit tests for each tool and integration tests for compiling cpp projects.
## Features ## Features
@ -111,7 +111,7 @@ jobs:
matrix: matrix:
os: os:
- windows-2022 - windows-2022
- ubuntu-22.04 - ubuntu-24.04
- macos-12 - macos-12
compiler: compiler:
- llvm - llvm
@ -259,7 +259,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: os:
- ubuntu-22.04 - ubuntu-24.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build - name: Build

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -44,6 +44,7 @@ export const MinVersions: Record<string, string | undefined> = {
// - the older ones use "" // - the older ones use ""
export const DefaultLinuxVersion: Record<string, Record<number, string> | undefined> = { export const DefaultLinuxVersion: Record<string, Record<number, string> | undefined> = {
gcc: { gcc: {
24: "13",
22: "13", 22: "13",
20: "11", 20: "11",
18: "11", 18: "11",
@ -51,11 +52,13 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "11", 14: "11",
}, },
mingw: { mingw: {
24: "8.0.0-1",
22: "8.0.0-1", 22: "8.0.0-1",
20: "7.0.0-2", 20: "7.0.0-2",
}, },
// the suffixes relate to the suffix in the llvm releases // the suffixes relate to the suffix in the llvm releases
llvm: { llvm: {
24: "17.0.6-ubuntu-22.04",
22: "17.0.6-ubuntu-22.04", 22: "17.0.6-ubuntu-22.04",
20: "17.0.6-ubuntu-22.04", 20: "17.0.6-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04", 18: "15.0.6-ubuntu-18.04",
@ -63,6 +66,7 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "13.0.0-ubuntu-16.04", 14: "13.0.0-ubuntu-16.04",
}, },
clangtidy: { clangtidy: {
24: "17.0.6-ubuntu-22.04",
22: "17.0.6-ubuntu-22.04", 22: "17.0.6-ubuntu-22.04",
20: "17.0.6-ubuntu-22.04", 20: "17.0.6-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04", 18: "15.0.6-ubuntu-18.04",
@ -70,6 +74,7 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "13.0.0-ubuntu-16.04", 14: "13.0.0-ubuntu-16.04",
}, },
clangformat: { clangformat: {
24: "17.0.6-ubuntu-22.04",
22: "17.0.6-ubuntu-22.04", 22: "17.0.6-ubuntu-22.04",
20: "17.0.6-ubuntu-22.04", 20: "17.0.6-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04", 18: "15.0.6-ubuntu-18.04",
@ -77,15 +82,19 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "13.0.0-ubuntu-16.04", 14: "13.0.0-ubuntu-16.04",
}, },
gcovr: { gcovr: {
24: "6.0",
22: "6.0", 22: "6.0",
20: "6.0", 20: "6.0",
18: "5.0", 18: "5.0",
}, },
meson: { meson: {
24: "1.0.0",
22: "1.0.0",
20: "1.0.0", 20: "1.0.0",
18: "0.61.4", 18: "0.61.4",
}, },
nala: { nala: {
24: "",
22: "", 22: "",
21: "legacy", 21: "legacy",
20: "legacy", 20: "legacy",
@ -94,6 +103,7 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "legacy", 14: "legacy",
}, },
kcov: { kcov: {
24: "42-binary",
22: "42-binary", 22: "42-binary",
20: "40-binary", // https://github.com/SimonKagstrom/kcov/releases 20: "40-binary", // https://github.com/SimonKagstrom/kcov/releases
18: "40", 18: "40",