From 82eaf47b20492c5d8f25926be3b9694aad002a64 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 1 Nov 2024 11:27:24 -0700 Subject: [PATCH] [github-actions] migrate ubuntu runners to 24.04 (#10795) --- .github/workflows/build.yml | 34 ++++++++++++++-------------- .github/workflows/docker.yml | 2 +- .github/workflows/fuzz.yml | 2 +- .github/workflows/makefile-check.yml | 2 +- .github/workflows/otbr.yml | 6 ++--- .github/workflows/otci.yml | 4 ++-- .github/workflows/otns.yml | 14 ++++++------ .github/workflows/posix.yml | 22 ++++++++++-------- .github/workflows/simulation-1.1.yml | 31 +++++++++++++------------ .github/workflows/simulation-1.4.yml | 26 ++++++++++----------- .github/workflows/size.yml | 2 +- .github/workflows/toranj.yml | 12 +++++----- .github/workflows/unit.yml | 8 +++---- .github/workflows/version.yml | 2 +- 14 files changed, 87 insertions(+), 80 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1409eba70..de3f1f26b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ permissions: jobs: pretty: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -62,7 +62,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y clang-format-14 clang-tidy-14 shellcheck python3 -m pip install yapf==0.31.0 sudo snap install shfmt @@ -88,7 +88,7 @@ jobs: fail_on_error: true spell-check: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -111,7 +111,7 @@ jobs: script/code-spell check cmake-version: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -138,7 +138,7 @@ jobs: package: name: package-${{ matrix.compiler }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -163,14 +163,14 @@ jobs: submodules: true - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build libreadline-dev libncurses-dev - name: Package run: | script/test package scan-build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -182,14 +182,14 @@ jobs: submodules: true - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y clang-tools-14 ninja-build - name: Run run: | script/check-scan-build mbedtls2-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -214,7 +214,7 @@ jobs: arm-gcc: name: arm-gcc-${{ matrix.gcc_ver }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -258,7 +258,7 @@ jobs: - name: Bootstrap run: | cd /tmp - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y build-essential lib32z1 ninja-build gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf wget --tries 4 --no-check-certificate --quiet ${{ matrix.gcc_download_url }} -O gcc-arm tar xf gcc-arm @@ -279,7 +279,7 @@ jobs: gcc: name: gcc-${{ matrix.gcc_ver }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -298,7 +298,7 @@ jobs: submodules: true - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update case ${{ matrix.gcc_ver }} in 11) sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test @@ -312,7 +312,7 @@ jobs: clang: name: clang-${{ matrix.clang_ver }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -342,7 +342,7 @@ jobs: script/check-posix-build gn: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -354,7 +354,7 @@ jobs: submodules: true - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build cd /tmp wget -O gn.zip https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+/latest @@ -400,7 +400,7 @@ jobs: android-ndk: name: android-ndk - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: image: openthread/environment steps: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0936e2d88..b19a61da2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -47,7 +47,7 @@ jobs: buildx: name: buildx-${{ matrix.docker_name }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index b5608b39f..82cc54047 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -42,7 +42,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: Fuzzing: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/makefile-check.yml b/.github/workflows/makefile-check.yml index 692359124..95f4da4f1 100644 --- a/.github/workflows/makefile-check.yml +++ b/.github/workflows/makefile-check.yml @@ -45,7 +45,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: makefile-check: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/otbr.yml b/.github/workflows/otbr.yml index d92de4d3b..b2adaf261 100644 --- a/.github/workflows/otbr.yml +++ b/.github/workflows/otbr.yml @@ -46,7 +46,7 @@ permissions: jobs: backbone-router: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: REFERENCE_DEVICE: 1 VIRTUAL_TIME: 0 @@ -111,7 +111,7 @@ jobs: retention-days: 1 thread-border-router: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -236,7 +236,7 @@ jobs: needs: - backbone-router - thread-border-router - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/otci.yml b/.github/workflows/otci.yml index 0aec87284..18dc8304d 100644 --- a/.github/workflows/otci.yml +++ b/.github/workflows/otci.yml @@ -47,7 +47,7 @@ jobs: cli-sim: name: cli-sim VIRTUAL_TIME=${{ matrix.virtual_time }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -68,7 +68,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build python3 -m pip install -r tests/scripts/thread-cert/requirements.txt python3 -m pip install pytype adb-shell diff --git a/.github/workflows/otns.yml b/.github/workflows/otns.yml index 54f3ded78..b108da6a3 100644 --- a/.github/workflows/otns.yml +++ b/.github/workflows/otns.yml @@ -55,7 +55,7 @@ jobs: unittests: name: Unittests - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -72,7 +72,7 @@ jobs: python-version: "3.9" - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y lcov ninja-build - name: Run run: | @@ -100,7 +100,7 @@ jobs: examples: name: Examples - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 @@ -112,7 +112,7 @@ jobs: python-version: "3.9" - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y lcov ninja-build - name: Run run: | @@ -139,7 +139,7 @@ jobs: stress-tests: name: Stress ${{ matrix.suite }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -174,7 +174,7 @@ jobs: python-version: "3.9" - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y lcov ninja-build - name: Run run: | @@ -205,7 +205,7 @@ jobs: - unittests - examples - stress-tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index c159d5cb9..a4e1f6537 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -46,7 +46,7 @@ permissions: jobs: expects-linux: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: CFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15 CXXFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15 @@ -57,6 +57,10 @@ jobs: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + with: + python-version: '3.12' + cache: pip - name: Bootstrap run: | sudo apt-get --no-install-recommends install -y expect ninja-build lcov socat @@ -92,7 +96,7 @@ jobs: retention-days: 1 - name: Run TUN Mode run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update echo 0 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6 sudo apt-get install --no-install-recommends -y bind9-host ntp socat sudo systemctl restart ntp @@ -130,7 +134,7 @@ jobs: retention-days: 1 thread-cert: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: COVERAGE: 1 PYTHONUNBUFFERED: 1 @@ -151,7 +155,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y lcov ninja-build python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -175,7 +179,7 @@ jobs: pty-linux: name: pty-linux OT_DAEMON=${{ matrix.OT_DAEMON }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -193,8 +197,8 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update - sudo apt-get --no-install-recommends install -y socat expect lcov net-tools ninja-build + sudo apt-get update + sudo apt-get --no-install-recommends install -y socat expect lcov libreadline-dev net-tools ninja-build cd /tmp wget https://github.com/obgm/libcoap/archive/bsd-licensed.tar.gz tar xvf bsd-licensed.tar.gz @@ -263,7 +267,7 @@ jobs: script/check-posix-pty check rcp-stack-reset: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -297,7 +301,7 @@ jobs: - expects-linux - pty-linux - thread-cert - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/simulation-1.1.yml b/.github/workflows/simulation-1.1.yml index 0db0bc453..1298e6bbf 100644 --- a/.github/workflows/simulation-1.1.yml +++ b/.github/workflows/simulation-1.1.yml @@ -46,7 +46,7 @@ permissions: jobs: packet-verification: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: PACKET_VERIFICATION: 1 REFERENCE_DEVICE: 1 @@ -68,7 +68,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -97,7 +97,7 @@ jobs: retention-days: 1 cli-ftd: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: CFLAGS: -m32 CXXFLAGS: -m32 @@ -121,7 +121,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y lcov ninja-build g++-multilib python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -146,7 +146,7 @@ jobs: cli-mtd: name: cli-mtd MESSAGE_USE_HEAP=${{ matrix.message_use_heap }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -176,7 +176,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y lcov ninja-build g++-multilib python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -200,7 +200,7 @@ jobs: retention-days: 1 cli-time-sync: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: CFLAGS: -m32 CXXFLAGS: -m32 @@ -224,7 +224,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y g++-multilib lcov ninja-build python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -248,7 +248,7 @@ jobs: retention-days: 1 expects: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: CFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15 CXXFLAGS: -DCLI_COAP_SECURE_USE_COAP_DEFAULT_HANDLER=1 -DOPENTHREAD_CONFIG_MLE_MAX_CHILDREN=15 @@ -295,7 +295,7 @@ jobs: retention-days: 1 ot-commissioner: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 env: THREAD_VERSION: 1.1 steps: @@ -307,11 +307,14 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: submodules: true + - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + with: + python-version: '3.12' + cache: pip - name: Bootstrap env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" run: | - sudo rm /etc/apt/sources.list.d/* sudo apt-get update sudo apt-get install -y avahi-daemon avahi-utils lcov script/git-tool clone https://github.com/openthread/ot-commissioner.git /tmp/ot-commissioner --depth 1 --branch main @@ -345,7 +348,7 @@ jobs: retention-days: 1 multiple-instance: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: COVERAGE: 1 THREAD_VERSION: 1.1 @@ -389,7 +392,7 @@ jobs: retention-days: 1 simulation-local-host: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: COVERAGE: 1 steps: @@ -425,7 +428,7 @@ jobs: - expects - ot-commissioner - multiple-instance - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/simulation-1.4.yml b/.github/workflows/simulation-1.4.yml index ff4962d3a..253548dc9 100644 --- a/.github/workflows/simulation-1.4.yml +++ b/.github/workflows/simulation-1.4.yml @@ -47,7 +47,7 @@ jobs: thread-1-4: name: thread-1-4-${{ matrix.compiler.c }}-${{ matrix.arch }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: CFLAGS: -${{ matrix.arch }} CXXFLAGS: -${{ matrix.arch }} @@ -62,7 +62,7 @@ jobs: strategy: fail-fast: false matrix: - compiler: [{c: "gcc", cxx: "g++", gcov: "gcc"}, { c: "clang-10", cxx: "clang++-10", gcov: "llvm"}] + compiler: [{c: "gcc", cxx: "g++", gcov: "gcc"}, { c: "clang", cxx: "clang++", gcov: "llvm"}] arch: ["m32", "m64"] steps: - name: Harden Runner @@ -81,7 +81,7 @@ jobs: run: | sudo dpkg --add-architecture i386 sudo apt-get update - sudo apt-get --no-install-recommends install -y clang-10 clang++-10 ninja-build llvm lcov + sudo apt-get --no-install-recommends install -y ninja-build llvm lcov sudo apt-get --no-install-recommends install -y g++-multilib libreadline-dev:i386 libncurses-dev:i386 python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -120,7 +120,7 @@ jobs: retention-days: 1 packet-verification-low-power: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: REFERENCE_DEVICE: 1 VIRTUAL_TIME: 1 @@ -145,7 +145,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -197,7 +197,7 @@ jobs: retention-days: 1 packet-verification-1-1-on-1-4: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: REFERENCE_DEVICE: 1 VIRTUAL_TIME: 1 @@ -220,7 +220,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -249,7 +249,7 @@ jobs: retention-days: 1 channel-manager-csl: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: CFLAGS: -m32 CXXFLAGS: -m32 @@ -272,7 +272,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y g++-multilib lcov ninja-build python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -297,7 +297,7 @@ jobs: retention-days: 1 expects: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: COVERAGE: 1 THREAD_VERSION: 1.4 @@ -346,7 +346,7 @@ jobs: retention-days: 1 thread-1-4-posix: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: COVERAGE: 1 PYTHONUNBUFFERED: 1 @@ -371,7 +371,7 @@ jobs: cache: pip - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y libreadline6-dev ninja-build llvm lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build @@ -420,7 +420,7 @@ jobs: - packet-verification-1-1-on-1-4 - expects - thread-1-4-posix - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 1a432017b..caa890039 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -46,7 +46,7 @@ permissions: jobs: size-report: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/toranj.yml b/.github/workflows/toranj.yml index 8d232403b..ec97e6e1f 100644 --- a/.github/workflows/toranj.yml +++ b/.github/workflows/toranj.yml @@ -47,7 +47,7 @@ jobs: toranj-ncp: name: toranj-ncp-${{ matrix.TORANJ_RADIO }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -74,7 +74,7 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build & Run @@ -84,7 +84,7 @@ jobs: toranj-cli: name: toranj-cli-${{ matrix.TORANJ_RADIO }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: TORANJ_RADIO: ['15.4', 'trel', 'multi'] @@ -109,7 +109,7 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build & Run @@ -128,7 +128,7 @@ jobs: toranj-unittest: name: toranj-unittest - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -217,7 +217,7 @@ jobs: upload-coverage: needs: - toranj-cli - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 0a6c78f34..bd23d32e2 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -46,7 +46,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: tcplp-buffering: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 @@ -62,7 +62,7 @@ jobs: run: third_party/tcplp/lib/test/test_all unit-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: COVERAGE: 1 steps: @@ -76,7 +76,7 @@ jobs: submodules: true - name: Bootstrap run: | - sudo rm /etc/apt/sources.list.d/* && sudo apt-get update + sudo apt-get update sudo apt-get --no-install-recommends install -y ninja-build lcov - name: Build Simulation run: ./script/cmake-build simulation -DOT_BUILD_GTEST=ON -DOT_BORDER_ROUTING=ON -DOT_BORDER_ROUTING_DHCP6_PD=ON @@ -106,7 +106,7 @@ jobs: upload-coverage: needs: unit-tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 850322a16..d46d686a7 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -42,7 +42,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: api-version: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1