mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
CI: Use gcc-9 and clang-11 with Ubuntu 22.04 (#16076)
This commit is contained in:
parent
233ffbe384
commit
409543566a
1 changed files with 20 additions and 20 deletions
40
.github/workflows/linux.yml
vendored
40
.github/workflows/linux.yml
vendored
|
@ -34,28 +34,32 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Older gcc version (should be close to our minimum supported version)
|
# Older gcc version (should be close to our minimum supported version)
|
||||||
gcc_7:
|
gcc_9:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
source ./util/ci/common.sh
|
source ./util/ci/common.sh
|
||||||
install_linux_deps g++-7
|
install_linux_deps g++-9
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./util/ci/build.sh
|
./util/ci/build.sh
|
||||||
env:
|
env:
|
||||||
CC: gcc-7
|
CC: gcc-9
|
||||||
CXX: g++-7
|
CXX: g++-9
|
||||||
# Test fallback SHA implementations
|
CMAKE_FLAGS: '-DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"'
|
||||||
CMAKE_FLAGS: '-DENABLE_OPENSSL=0'
|
|
||||||
|
|
||||||
- name: Test
|
- name: Unittest
|
||||||
run: |
|
run: |
|
||||||
./bin/luanti --run-unittests
|
./bin/luanti --run-unittests
|
||||||
|
|
||||||
|
# Do this here because we have ASan and error paths are sensitive to dangling pointers
|
||||||
|
- name: Test error cases
|
||||||
|
run: |
|
||||||
|
./util/test_error_cases.sh
|
||||||
|
|
||||||
# Current gcc version
|
# Current gcc version
|
||||||
gcc_14:
|
gcc_14:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
@ -81,32 +85,28 @@ jobs:
|
||||||
../bin/luanti --run-unittests
|
../bin/luanti --run-unittests
|
||||||
|
|
||||||
# Older clang version (should be close to our minimum supported version)
|
# Older clang version (should be close to our minimum supported version)
|
||||||
clang_7:
|
clang_11:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
source ./util/ci/common.sh
|
source ./util/ci/common.sh
|
||||||
install_linux_deps clang-7 llvm-7
|
install_linux_deps clang-11
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./util/ci/build.sh
|
./util/ci/build.sh
|
||||||
env:
|
env:
|
||||||
CC: clang-7
|
CC: clang-11
|
||||||
CXX: clang++-7
|
CXX: clang++-11
|
||||||
CMAKE_FLAGS: '-DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"'
|
# Test fallback SHA implementations
|
||||||
|
CMAKE_FLAGS: '-DENABLE_OPENSSL=0'
|
||||||
|
|
||||||
- name: Unittest
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
./bin/luanti --run-unittests
|
./bin/luanti --run-unittests
|
||||||
|
|
||||||
# Do this here because we have ASan and error paths are sensitive to dangling pointers
|
|
||||||
- name: Test error cases
|
|
||||||
run: |
|
|
||||||
./util/test_error_cases.sh
|
|
||||||
|
|
||||||
# Current clang version
|
# Current clang version
|
||||||
clang_18:
|
clang_18:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue