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:
Build:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
name: Build
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
node:
- 22
pnpm:
@ -92,7 +92,7 @@ jobs:
matrix:
os:
- windows-2022
- ubuntu-22.04
- ubuntu-24.04
- macos-13
- macos-12
node:
@ -156,6 +156,7 @@ jobs:
os:
- windows-2022
- windows-2019
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-20.04
- macos-13
@ -234,7 +235,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
node:
- 22
pnpm:
@ -282,7 +283,7 @@ jobs:
Release:
if: startsWith(github.ref, 'refs/tags/')
needs: [Build, BuildExecutable, Test, Docker]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Download All Artifacts
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` 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
@ -111,7 +111,7 @@ jobs:
matrix:
os:
- windows-2022
- ubuntu-22.04
- ubuntu-24.04
- macos-12
compiler:
- llvm
@ -259,7 +259,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
steps:
- uses: actions/checkout@v3
- 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 ""
export const DefaultLinuxVersion: Record<string, Record<number, string> | undefined> = {
gcc: {
24: "13",
22: "13",
20: "11",
18: "11",
@ -51,11 +52,13 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "11",
},
mingw: {
24: "8.0.0-1",
22: "8.0.0-1",
20: "7.0.0-2",
},
// the suffixes relate to the suffix in the llvm releases
llvm: {
24: "17.0.6-ubuntu-22.04",
22: "17.0.6-ubuntu-22.04",
20: "17.0.6-ubuntu-22.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",
},
clangtidy: {
24: "17.0.6-ubuntu-22.04",
22: "17.0.6-ubuntu-22.04",
20: "17.0.6-ubuntu-22.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",
},
clangformat: {
24: "17.0.6-ubuntu-22.04",
22: "17.0.6-ubuntu-22.04",
20: "17.0.6-ubuntu-22.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",
},
gcovr: {
24: "6.0",
22: "6.0",
20: "6.0",
18: "5.0",
},
meson: {
24: "1.0.0",
22: "1.0.0",
20: "1.0.0",
18: "0.61.4",
},
nala: {
24: "",
22: "",
21: "legacy",
20: "legacy",
@ -94,6 +103,7 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
14: "legacy",
},
kcov: {
24: "42-binary",
22: "42-binary",
20: "40-binary", // https://github.com/SimonKagstrom/kcov/releases
18: "40",