Skip to content

Commit

Permalink
workflows/cmake.yml:test on Ubuntu Jammy (22.04);migrate to checkoutv3
Browse files Browse the repository at this point in the history
This should also fix MegaGlest#247
  • Loading branch information
andy5995 committed Aug 17, 2022
1 parent e63d814 commit 10965f4
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,38 @@ jobs:
fail-fast: false
matrix:
arch: [x64]
os: [ubuntu-18.04, ubuntu-latest]
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
compiler: [gcc, clang]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get dependencies
run: |
sudo apt update
sudo mk/linux/setupBuildDeps.sh
- name: Bulid MegaGlest With GCC Compiler
if [ "${matrix.os}" != "ubuntu-22.04" ]; then
sudo apt-get install 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-0-dev libpsl-dev libgnutls28-dev \
libnghttp2-dev libssh2-1-dev
else
sudo mk/linux/setupBuildDeps.sh
fi
- name: Build MegaGlest With GCC Compiler
if: ${{ matrix.compiler == 'gcc' }}
env:
CC: gcc
CXX: g++
run: mk/linux/build-mg.sh

- name: Bulid MegaGlest With Clang Compiler
- name: Build MegaGlest With Clang Compiler
if: ${{ matrix.compiler == 'clang' }}
env:
CC: clang
Expand Down Expand Up @@ -75,7 +87,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Cache Vcpkg Libs
uses: actions/cache@v2
Expand Down

0 comments on commit 10965f4

Please sign in to comment.