From b1e2b64d47bf97b2b2991b820260c69e7215123a Mon Sep 17 00:00:00 2001 From: Robin Liu Date: Tue, 10 Dec 2024 18:49:13 -0500 Subject: [PATCH] update gcc version in CI --- .github/workflows/main.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93dbb6a6..541ce33e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,7 +84,7 @@ jobs: build_Linux_Debug: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Check out code uses: actions/checkout@v3 @@ -95,19 +95,18 @@ jobs: - name: Install dependency run: | sudo apt-get update --yes - sudo apt-get install --yes cmake gcc-10 clang-14 libsystemd-dev libbsd-dev ninja-build - pip3 install mako - which gcc-10 + sudo apt-get install --yes cmake gcc-14 clang-14 libsystemd-dev libbsd-dev ninja-build python3-mako + which gcc-14 which clang-14 - - name: Build the UI with gcc-10 + - name: Build the UI with gcc-14 run: | - mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-10 .. -GNinja && ninja && cd .. + mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-14 .. -GNinja && ninja && cd .. - name: Run tests run: | cd build; ctest --output-on-failure -C Debug build_Linux_Release: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Check out code uses: actions/checkout@v3 @@ -118,13 +117,12 @@ jobs: - name: Install dependency run: | sudo apt-get update --yes - sudo apt-get install --yes cmake gcc-10 clang-14 libsystemd-dev libbsd-dev ninja-build - pip3 install mako - which gcc-10 + sudo apt-get install --yes cmake gcc-14 clang-14 libsystemd-dev libbsd-dev ninja-build python3-mako + which gcc-14 which clang-14 - - name: Build the UI with gcc-10 + - name: Build the UI with gcc-14 run: | - mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-10 .. -GNinja && ninja && cd .. + mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-14 .. -GNinja && ninja && cd .. - name: Run tests run: | cd build; ctest --output-on-failure -C Release