Merge pull request #22 from DegateCommunity/updated-readme-2023 #261
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: Linux build & tests | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
BUILD_TYPE: Release # Change build type here. | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: 6.2.4 # Update Qt version here. | |
aqtversion: '>=0.9.7' | |
modules: 'qtimageformats' | |
- name: Install Boost | |
shell: bash | |
run: | | |
sudo apt-get install -y libboost-all-dev | |
- name: Build | |
shell: bash | |
run: | | |
cd build | |
cmake .. | |
cmake --build . --config $BUILD_TYPE --target Degate | |
- name: Tests | |
shell: bash | |
run: | | |
cd build | |
cmake --build . --config $BUILD_TYPE --target DegateTests | |
cd tests/out/bin | |
./DegateTests |