Skip to content

Commit

Permalink
Update Ubuntu pipeline image (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxwa authored Oct 2, 2024
1 parent 0ebe581 commit a029db0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/bvt-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ on:

jobs:
bvt-clang:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}

- name: install clang
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main" -y
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" -y
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" -y
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" -y
sudo apt update
sudo apt install -y clang-15 clang-16 clang-17 clang-18
- name: check compiler versions
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/bvt-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,22 @@ on:

jobs:
bvt-gcc:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}

- name: install gcc
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install -y gcc-11 g++-11 gcc-12 g++-12 gcc-13 g++-13
sudo apt install -y gcc-11 g++-11 gcc-12 g++-12 gcc-13 g++-13 gcc-14 g++-14
- name: check compiler versions
run: |
g++-11 --version
g++-12 --version
g++-13 --version
g++-14 --version
- name: build and run test with gcc 11
run: |
Expand All @@ -42,3 +41,9 @@ jobs:
cmake -B build-gcc-13 -DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13
cmake --build build-gcc-13 -j
ctest --test-dir build-gcc-13 -j
- name: build and run test with gcc 14
run: |
cmake -B build-gcc-14 -DCMAKE_C_COMPILER=gcc-14 -DCMAKE_CXX_COMPILER=g++-14
cmake --build build-gcc-14 -j
ctest --test-dir build-gcc-14 -j

0 comments on commit a029db0

Please sign in to comment.