Update and fix Linux CI builds

- Updating to remove usage of a deprecated enum in boost, we also needed
  to update the version of boost used in the Linux build, so now we use
  Ubuntu 22 which provides boost 1.74
- Updating Ubuntu must have updated the default C++ standard used when
  building TGUI, because TGUI started throwing compiler errors coming
  from conditional code that is for >C++17 only. I added an environment
  variable to install-TGUI.sh so it will build with C++14 to match the
  standard for the cboe build on linux
- some CI runs were throwing network errors from apt-get install, so I
  added apt-get update as a precaution. Maybe less builds will fail from
  network errors now?
This commit is contained in:
2024-05-27 18:57:32 -06:00
committed by Celtic Minstrel
parent 1bb0927ecb
commit eef0112589
2 changed files with 3 additions and 3 deletions

View File

@@ -181,7 +181,7 @@
# ] # ]
# }, # },
linux: { linux: {
runs-on: ubuntu-20.04, runs-on: ubuntu-22.04,
steps: [ steps: [
{ {
name: checkout, name: checkout,
@@ -190,7 +190,7 @@
}, },
{ {
name: install dependencies, name: install dependencies,
run: 'sudo apt-get install scons libxml2-utils zlib1g libsfml-dev libboost-all-dev zenity' run: 'sudo apt-get update && sudo apt-get install scons libxml2-utils zlib1g libsfml-dev libboost-all-dev zenity'
}, },
{ {
name: install TGUI, name: install TGUI,

View File

@@ -3,7 +3,7 @@
git clone --depth 1 -b 0.9 https://github.com/texus/TGUI.git git clone --depth 1 -b 0.9 https://github.com/texus/TGUI.git
cd TGUI cd TGUI
export CLICOLOR_FORCE=1 export CLICOLOR_FORCE=1
cmake . cmake -D TGUI_CXX_STANDARD=14 .
make make
cmake --install . cmake --install .
cd .. # Probably not needed but... cd .. # Probably not needed but...