Skip to content

Commit

Permalink
remove jammy, add gcc-11 and 12 test
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Aug 17, 2022
1 parent 3c8df94 commit cbf7291
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
43 changes: 31 additions & 12 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [x64]
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-18.04, ubuntu-20.04]
compiler: [gcc, clang]
runs-on: ${{ matrix.os }}
env:
MATRIX_COMPILER: ${{matrix.compiler}}

steps:
- uses: actions/checkout@v3
Expand All @@ -28,17 +29,35 @@ jobs:
sudo mk/linux/setupBuildDeps.sh
- name: Build MegaGlest With GCC Compiler
if: ${{ matrix.compiler == 'gcc' }}
env:
CC: gcc
CXX: g++
run: mk/linux/build-mg.sh

- name: Build MegaGlest With Clang Compiler
if: ${{ matrix.compiler == 'clang' }}
env:
CC: clang
CXX: clang++
run: |
if [ "${MATRIX_COMPILER}" = "gcc" ]; then
eval "CC=gcc && CXX=g++"
else
eval "CC=clang && CXX=clang++"
fi
mk/linux/build-mg.sh
build-latest-gcc:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
compiler: [11, 12]
runs-on: ubuntu-20.04
env:
CC: gcc-${{matrix.compiler}}
CXX: g++-${{matrix.compiler}}
steps:
- uses: actions/checkout@v3
- name: Get dependencies
run: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157;
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/ppa
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y $CC $CXX
sudo mk/linux/setupBuildDeps.sh
- name: Build MegaGlest With GCC Compiler
run: mk/linux/build-mg.sh

- name: Prepare Snapshot
Expand Down
6 changes: 1 addition & 5 deletions mk/linux/setupBuildDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,10 @@ case $distribution in
#name > bionic
installcommand="apt-get install $APT_OPTIONS build-essential cmake libcurl4-gnutls-dev libsdl2-dev libopenal-dev liblua5.3-dev libjpeg-dev libpng-dev libfreetype6-dev libwxgtk3.0-dev libcppunit-dev libfribidi-dev libftgl-dev libglew-dev libogg-dev libvorbis-dev libminiupnpc-dev libircclient-dev libvlc-dev libvlccore-dev libxml2-dev libx11-dev libgl1-mesa-dev libglu1-mesa-dev librtmp-dev libkrb5-dev libldap2-dev libidn11-dev libgnutls28-dev libnghttp2-dev libssh2-1-dev libidn2-dev libpsl-dev"
;;
20.04)
"20.04"|"22.04*")
#name > Focal Fossa
installcommand="apt-get install $APT_OPTIONS build-essential cmake libcurl4-gnutls-dev libsdl2-dev libopenal-dev liblua5.3-dev libjpeg-dev libpng-dev libfreetype6-dev libwxgtk3.0-gtk3-dev libcppunit-dev libfribidi-dev libftgl-dev libglew-dev libogg-dev libvorbis-dev libminiupnpc-dev libircclient-dev libvlc-dev libvlccore-dev libxml2-dev libx11-dev libgl1-mesa-dev libglu1-mesa-dev librtmp-dev libkrb5-dev libldap2-dev libidn2-dev libpsl-dev libgnutls28-dev libnghttp2-dev libssh-dev libbrotli-dev"
;;
22.04)
#name > Jammy
installcommand="apt-get install $APT_OPTIONS cmake libcurl4-openssl-dev libsdl2-dev libopenal-dev liblua5.3-dev libwxgtk3.0-gtk3-dev libcppunit-dev libfribidi-dev libftgl-dev libglew-dev libogg-dev libvorbis-dev libminiupnpc-dev libircclient-dev libvlc-dev libvlccore-dev libgl1-mesa-dev libglu1-mesa-dev librtmp-dev libkrb5-dev libldap2-dev libidn2-dev libpsl-dev libgnutls28-dev libnghttp2-dev libssh2-1-dev"
;;
*)
installcommand="apt-get install $APT_OPTIONS $packages_for_next_debian_ubuntu_mint"
unsupported_currently_this_OS="release"
Expand Down

0 comments on commit cbf7291

Please sign in to comment.