CI #384
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 ] | |
schedule: | |
- cron: '21 11 * * 5' | |
jobs: | |
linux: | |
name: Linux build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update | |
run: sudo apt-get update | |
- name: Dependencies | |
run: sudo apt-get install build-essential cmake zlib1g-dev libfreetype6-dev libopenal1 libopenal-dev mesa-common-dev libgl1-mesa-dev libboost-dev libsdl2-dev libepoxy-dev libglm-dev qtbase5-dev libcurl4-gnutls-dev libcppunit-dev | |
- name: Configure | |
run: cmake --version && cmake -B ${{github.workspace}}/build -Werror=dev -Werror=deprecated -DCONTINUOUS_INTEGRATION=1 -DICON_TYPE=none | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Check Style | |
run: cmake --build ${{github.workspace}}/build --target style | |
macos: | |
name: macOS build | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update | |
run: brew update | |
- name: Workaround for Python install isssues - https://github.com/actions/runner-images/issues/8838 | |
run: brew install python@3 || brew link --overwrite python@3 | |
- name: Dependencies | |
env: | |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 | |
run: brew install boost freetype sdl2 libepoxy qt@5 cppunit glm openal-soft | |
- name: Configure | |
run: cmake --version && cmake -B ${{github.workspace}}/build -Werror=dev -Werror=deprecated -DCONTINUOUS_INTEGRATION=1 -DICON_TYPE=none -DOPENAL_LIBRARY=/opt/homebrew/opt/openal-soft/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=/opt/homebrew/opt/openal-soft/include/AL -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@5 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build |