Merge pull request #248 from Zirias/quazip #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CI_CXXFLAGS: -O2 -Wall -Wextra -Werror -pedantic | |
WSHADOW_GCC: -Wshadow=local | |
WSHADOW_CLANG: -Wshadow-uncaptured-local | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: | | |
clang | |
libavcodec-dev | |
libavformat-dev | |
libavutil-dev | |
libpng-dev | |
libquazip5-dev | |
libsdl2-dev | |
libsdl2-image-dev | |
libswresample-dev | |
libswscale-dev | |
qtbase5-dev | |
qttools5-dev-tools | |
version: 1.0 | |
- name: build-gcc | |
run: | | |
mkdir build-gcc | |
cd build-gcc | |
qmake .. PREFIX=/usr/local QMAKE_CXX=g++ \ | |
QMAKE_CXXFLAGS="${CI_CXXFLAGS} ${WSHADOW_GCC}" | |
make -j4 | |
- name: build-clang | |
run: | | |
mkdir build-clang | |
cd build-clang | |
qmake .. PREFIX=/usr/local QMAKE_CXX=clang++ \ | |
QMAKE_CXXFLAGS="${CI_CXXFLAGS} ${WSHADOW_CLANG}" | |
make -j4 |