Update ubuntu-latest tag to ubuntu-22.04 (#2439)

* Update ubuntu-latest tag to ubuntu-22.04

Everytime a CI service such a GitHub actions update the images
corresponding to their 'latest' tags, pipelines tend to have some
hipcups due to changes in the distribution default packages.

By fixing the images to a specific one, we should be more resilient to
changes in the Github actions environment.

* Use same build directory used in CMake presets
main
Luis Díaz Más 3 years ago committed by GitHub
parent aa635fddc8
commit 13ecfbc233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ on:
- "*.md" - "*.md"
jobs: jobs:
Fuzzing: Fuzzing:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Build Fuzzers - name: Build Fuzzers
id: build id: build

@ -24,7 +24,7 @@ on:
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false

@ -13,7 +13,7 @@ permissions: read-all
jobs: jobs:
codesee: codesee:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
continue-on-error: true continue-on-error: true
name: Analyze the repo with CodeSee name: Analyze the repo with CodeSee
steps: steps:

@ -14,7 +14,7 @@ name: Nightly - Linux distributions
jobs: jobs:
distros: distros:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false

@ -16,8 +16,8 @@ on:
jobs: jobs:
Linux: Linux:
name: 'Ubuntu 20.04 - clang/libFuzzer' name: 'Ubuntu 22.04 - clang/libFuzzer'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

@ -11,8 +11,8 @@ on:
jobs: jobs:
Linux: Linux:
name: 'Ubuntu 20.04 - GCC, BuildType:${{matrix.build_type}}, SHARED:${{matrix.shared_libraries}}' name: 'Ubuntu 22.04 - GCC, BuildType:${{matrix.build_type}}, SHARED:${{matrix.shared_libraries}}'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -25,7 +25,7 @@ jobs:
- name: install dependencies - name: install dependencies
run: | run: |
sudo apt-get install ninja-build sudo apt-get install ninja-build tree
pip3 install conan==1.54.0 pip3 install conan==1.54.0
- name: Conan common config - name: Conan common config
@ -36,23 +36,23 @@ jobs:
- name: Run Conan - name: Run Conan
run: | run: |
mkdir build && cd build mkdir build-base_linux && cd build-base_linux
conan profile list conan profile list
conan profile show default conan profile show default
conan install .. -o webready=True --build missing conan install .. -o webready=True --build missing
- name: Build - name: Build
run: | run: |
cmake --preset base_linux -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} cmake --preset base_linux -S . -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.shared_libraries}}
cmake --build build --parallel cmake --build build-base_linux --parallel
- name: Install - name: Install
run: | run: |
cd build cd build-base_linux
cmake --install . cmake --install .
tree install tree install
- name: Test - name: Test
run: | run: |
cd build cd build-base_linux
ctest --output-on-failure ctest --output-on-failure

@ -12,8 +12,8 @@ on:
jobs: jobs:
special_debugRelease: special_debugRelease:
name: 'Ubuntu 20.04 - GCC - Debug+Coverage' name: 'Ubuntu 22.04 - GCC - Debug+Coverage'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -61,8 +61,8 @@ jobs:
./codecov -f coverage.xml ./codecov -f coverage.xml
special_releaseValgrind: special_releaseValgrind:
name: 'Ubuntu 20.04 - GCC - Release+Valgrind' name: 'Ubuntu 22.04 - GCC - Release+Valgrind'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -96,8 +96,8 @@ jobs:
special_releaseSanitizers: special_releaseSanitizers:
name: 'Ubuntu 20.04 - GCC - Release+Sanitizers' name: 'Ubuntu 22.04 - GCC - Release+Sanitizers'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -130,8 +130,8 @@ jobs:
ctest --output-on-failure ctest --output-on-failure
special_allEnabled: special_allEnabled:
name: 'Ubuntu 20.04 - GCC - All Options Enabled + Documentation' name: 'Ubuntu 22.04 - GCC - All Options Enabled + Documentation'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

@ -12,8 +12,8 @@ on:
jobs: jobs:
special_pvsStudio: special_pvsStudio:
name: 'Ubuntu 20.04 - GCC - Static Analyzer: PVS-Studio' name: 'Ubuntu 22.04 - GCC - Static Analyzer: PVS-Studio'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

@ -64,8 +64,8 @@ jobs:
ctest --output-on-failure ctest --output-on-failure
Linux: Linux:
name: 'Ubuntu 20.04 - GCC - Arch:x64 BuildType:Release - SHARED' name: 'Ubuntu 22.04 - GCC - Arch:x64 BuildType:Release - SHARED'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

@ -16,8 +16,8 @@ on:
jobs: jobs:
special_debugRelease: special_debugRelease:
name: 'Ubuntu 20.04 - GCC - Debug+Coverage' name: 'Ubuntu 22.04 - GCC - Debug+Coverage'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

@ -5,7 +5,7 @@ concurrency:
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
clang-format-checking: clang-format-checking:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.14 - uses: DoozyX/clang-format-lint-action@v0.14

@ -18,7 +18,7 @@ on:
jobs: jobs:
Linux: Linux:
name: 'Build Linux Release' name: 'Build Linux Release'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -152,7 +152,7 @@ jobs:
publish: publish:
needs: [Linux, macOS, Windows] needs: [Linux, macOS, Windows]
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
permissions: permissions:
contents: write contents: write
steps: steps:

Loading…
Cancel
Save