CroftEngine-CI #669
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: CroftEngine-CI | |
on: | |
schedule: | |
- cron: "0 18 * * *" # every day at 6 PM : https://crontab.guru/#0_18_*_*_* | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: "Install CMake and Ninja" | |
uses: lukka/get-cmake@latest | |
- name: "Install dependencies" | |
run: | | |
sudo apt-get update && sudo apt-get install -y libboost-all-dev libglfw3-dev libpng++-dev libopenal-dev libglvnd-dev libfreetype6-dev cimg-dev ffmpeg libutfcpp-dev gettext libavcodec-dev libavformat-dev libavfilter-dev qtbase5-dev qt5-qmake qtbase5-dev-tools qttools5-dev libarchive-dev libjpeg-dev | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 | |
- name: "Run cmake" | |
run: | | |
cmake -S . -B build -G Ninja | |
- name: "Build" | |
run: | | |
ninja -C build | |
- name: "Test" | |
run: | | |
ctest -T Test --test-dir build --output-on-failure --no-compress-output --extra-verbose |