Use Ubuntu 22.04 as the runner OS for linux, to use a lower GLIBC version

This commit is contained in:
smallmodel 2024-11-24 16:06:22 +01:00
parent 8d0b7b77c6
commit 3956e03557
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -16,8 +16,9 @@ jobs:
########################## ##########################
# #
# Linux # Linux
# Ubuntu 24.04 # Ubuntu 22.04
# #
# Using this version instead of 24.04 to use a lower GLIBC version (2.34)
########################## ##########################
build-platform-linux: build-platform-linux:
strategy: strategy:
@ -33,7 +34,7 @@ jobs:
] ]
name: "Building for platform linux-${{matrix.architecture.name}}" name: "Building for platform linux-${{matrix.architecture.name}}"
runs-on: "ubuntu-24.04" runs-on: "ubuntu-22.04"
environment: ${{ inputs.environment }} environment: ${{ inputs.environment }}
steps: steps:
@ -51,7 +52,7 @@ jobs:
name: Install required cross-platform packages (${{ matrix.architecture.triple }}) name: Install required cross-platform packages (${{ matrix.architecture.triple }})
if: matrix.architecture.name != 'amd64' if: matrix.architecture.name != 'amd64'
with: with:
packages: gcc-14-${{ matrix.architecture.triple }} g++-14-${{ matrix.architecture.triple }} packages: gcc-12-${{ matrix.architecture.triple }} g++-12-${{ matrix.architecture.triple }}
version: "0.1" version: "0.1"
- name: Settings - name: Settings
@ -81,7 +82,8 @@ jobs:
with: with:
version: 2-latest version: 2-latest
build-type: Release build-type: Release
cmake-arguments: "" # Workaround for when changing the runner OS version
cmake-arguments: "-DCACHE_OS_VERSION=Ubuntu_22.04"
### ###
# OpenAL # OpenAL