mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-30 02:37:35 +02:00
CI: upgrade runner to ubuntu-22.04
This commit is contained in:
68
.github/workflows/ci.yml
vendored
68
.github/workflows/ci.yml
vendored
@ -94,28 +94,32 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- clang: "3.9"
|
- clang: "3.9"
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
archive: bionic
|
archive: bionic
|
||||||
- clang: "4.0"
|
- clang: "4.0"
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
archive: bionic
|
archive: bionic
|
||||||
- clang: "5.0"
|
- clang: "5.0"
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
archive: bionic
|
archive: bionic
|
||||||
- clang: "6.0"
|
- clang: "6.0"
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
archive: bionic
|
archive: bionic
|
||||||
- clang: "7"
|
- clang: "7"
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
|
archive: focal
|
||||||
- clang: "8"
|
- clang: "8"
|
||||||
cxxflags: -fsanitize=leak -fno-sanitize-recover=all
|
cxxflags: -fsanitize=leak -fno-sanitize-recover=all
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
|
archive: focal
|
||||||
- clang: "9"
|
- clang: "9"
|
||||||
cxxflags: -fsanitize=undefined -fno-sanitize-recover=all
|
cxxflags: -fsanitize=undefined -fno-sanitize-recover=all
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
|
archive: focal
|
||||||
- clang: "10"
|
- clang: "10"
|
||||||
cxxflags: -fsanitize=address -fno-sanitize-recover=all
|
cxxflags: -fsanitize=address -fno-sanitize-recover=all
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-22.04
|
||||||
|
archive: focal
|
||||||
- clang: "11"
|
- clang: "11"
|
||||||
runner: ubuntu-22.04
|
runner: ubuntu-22.04
|
||||||
- clang: "12"
|
- clang: "12"
|
||||||
@ -131,6 +135,8 @@ jobs:
|
|||||||
- name: Add archive repositories
|
- name: Add archive repositories
|
||||||
if: matrix.archive
|
if: matrix.archive
|
||||||
run: |
|
run: |
|
||||||
|
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
|
||||||
|
sudo gpg --export 3B4FE6ACC0B21F32 | sudo tee /etc/apt/trusted.gpg.d/ubuntu-keyring.gpg > /dev/null
|
||||||
sudo add-apt-repository -yn 'deb http://archive.ubuntu.com/ubuntu/ ${{ matrix.archive }} main'
|
sudo add-apt-repository -yn 'deb http://archive.ubuntu.com/ubuntu/ ${{ matrix.archive }} main'
|
||||||
sudo add-apt-repository -yn 'deb http://archive.ubuntu.com/ubuntu/ ${{ matrix.archive }} universe'
|
sudo add-apt-repository -yn 'deb http://archive.ubuntu.com/ubuntu/ ${{ matrix.archive }} universe'
|
||||||
- name: Install Clang ${{ matrix.clang }}
|
- name: Install Clang ${{ matrix.clang }}
|
||||||
@ -141,7 +147,7 @@ jobs:
|
|||||||
if: matrix.clang >= 11
|
if: matrix.clang >= 11
|
||||||
run: sudo apt-get install -y libc++-${{ matrix.clang }}-dev libc++abi-${{ matrix.clang }}-dev
|
run: sudo apt-get install -y libc++-${{ matrix.clang }}-dev libc++abi-${{ matrix.clang }}-dev
|
||||||
- name: Install libunwind ${{ matrix.clang }}
|
- name: Install libunwind ${{ matrix.clang }}
|
||||||
if: matrix.clang == 12 # dependency is missing in Ubuntu 22.04
|
if: matrix.clang == 12 # dependency is missing in Ubuntu 22.04
|
||||||
run: sudo apt-get install -y libunwind-${{ matrix.clang }}-dev
|
run: sudo apt-get install -y libunwind-${{ matrix.clang }}-dev
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -163,7 +169,7 @@ jobs:
|
|||||||
conf_test:
|
conf_test:
|
||||||
name: Test configuration on Linux
|
name: Test configuration on Linux
|
||||||
needs: [gcc, clang]
|
needs: [gcc, clang]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
@ -257,7 +263,7 @@ jobs:
|
|||||||
board: arduino:avr:uno
|
board: arduino:avr:uno
|
||||||
- core: arduino:samd
|
- core: arduino:samd
|
||||||
board: arduino:samd:mkr1000
|
board: arduino:samd:mkr1000
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -412,7 +418,7 @@ jobs:
|
|||||||
arm:
|
arm:
|
||||||
name: GCC for ARM processor
|
name: GCC for ARM processor
|
||||||
needs: gcc
|
needs: gcc
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
@ -431,7 +437,7 @@ jobs:
|
|||||||
coverage:
|
coverage:
|
||||||
needs: gcc
|
needs: gcc
|
||||||
name: Coverage
|
name: Coverage
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: sudo apt-get install -y lcov ninja-build
|
run: sudo apt-get install -y lcov ninja-build
|
||||||
@ -463,7 +469,7 @@ jobs:
|
|||||||
valgrind:
|
valgrind:
|
||||||
needs: gcc
|
needs: gcc
|
||||||
name: Valgrind
|
name: Valgrind
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
@ -485,7 +491,7 @@ jobs:
|
|||||||
clang-tidy:
|
clang-tidy:
|
||||||
needs: clang
|
needs: clang
|
||||||
name: Clang-Tidy
|
name: Clang-Tidy
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: sudo apt-get install -y clang-tidy cmake ninja-build
|
run: sudo apt-get install -y clang-tidy cmake ninja-build
|
||||||
@ -502,7 +508,7 @@ jobs:
|
|||||||
amalgamate:
|
amalgamate:
|
||||||
needs: gcc
|
needs: gcc
|
||||||
name: Amalgamate ArduinoJson.h
|
name: Amalgamate ArduinoJson.h
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -578,7 +584,7 @@ jobs:
|
|||||||
|
|
||||||
codeql:
|
codeql:
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
needs: gcc
|
needs: gcc
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@ -587,20 +593,20 @@ jobs:
|
|||||||
security-events: write
|
security-events: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: cpp
|
languages: cpp
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug .
|
cmake -DCMAKE_BUILD_TYPE=Debug .
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v3
|
||||||
with:
|
with:
|
||||||
category: "/language:cpp"
|
category: "/language:cpp"
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Create release
|
name: Create release
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
id: init
|
id: init
|
||||||
|
Reference in New Issue
Block a user