Skip to content

Commit

Permalink
update gcc version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RenfengLiu committed Dec 11, 2024
1 parent 8b538f3 commit b1e2b64
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b1e2b64

Please sign in to comment.