Switch to gcc-9 for Ubuntu 18.04 builds for proper support of C++17 with filesystem

dev
Tomasz Kapuściński 2022-04-23 11:34:15 +02:00
parent 013d3cccf4
commit 0882b69ec8
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ jobs:
container: [''] container: ['']
fail-fast: false fail-fast: false
steps: steps:
- name: Switch to gcc-9
run: sudo apt install gcc-9 g++-9 && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 && sudo update-alternatives --set gcc /usr/bin/gcc-9
if: matrix.host_os == 'ubuntu-18.04'
- name: Install Colobot dependencies - name: Install Colobot dependencies
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libvorbis-dev libogg-dev libpng-dev libglew-dev libopenal-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-regex-dev libphysfs-dev gettext git po4a vorbis-tools librsvg2-bin xmlstarlet libglm-dev run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libvorbis-dev libogg-dev libpng-dev libglew-dev libopenal-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-regex-dev libphysfs-dev gettext git po4a vorbis-tools librsvg2-bin xmlstarlet libglm-dev
if: matrix.container == '' if: matrix.container == ''