Remove gtest #299
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 | |
on: | |
push: | |
branches: [ master, develop ] | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 3 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: setup dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake ccache \ | |
cmake qt5-default qttools5-dev libqt5svg5-dev qtdeclarative5-dev libx11-xcb1 | |
- name: ccache timestamp | |
id: ccache_cache_timestamp | |
shell: cmake -P {0} | |
run: | | |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | |
message("::set-output name=timestamp::${current_date}") | |
- name: ccache files | |
uses: actions/[email protected] | |
with: | |
path: .ccache | |
key: qtmvvm-ubuntu-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | |
restore-keys: | | |
qtmvvm-ubuntu-ccache- | |
- name: build | |
env: | |
CCACHE_DIR: $GITHUB_WORKSPACE/.ccache | |
CCACHE_COMPRESS: "true" | |
CCACHE_COMPRESSLEVEL: "6" | |
CCACHE_MAXSIZE: "400M" | |
QT_QPA_PLATFORM: offscreen | |
run: | | |
cd $GITHUB_WORKSPACE && pwd && ls | |
mkdir build && cd build | |
cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache ../ | |
make package_source | |
make -j4 | |
- name: Upload tarball | |
uses: actions/upload-artifact@v2 | |
if: success() | |
with: | |
name: qt-mvvm | |
path: ./build/qt-mvvm-*.tar.gz | |
- name: ctest | |
env: | |
QT_QPA_PLATFORM: offscreen | |
run: | | |
cd $GITHUB_WORKSPACE/build | |
ccache -s | |
ctest -j4 | |
- name: upload test logs | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: LastTest.log | |
path: ./build/Testing/Temporary/LastTest.log |