Skip to content

updated the README, added nstructions about how to includeqnite in … #11

updated the README, added nstructions about how to includeqnite in …

updated the README, added nstructions about how to includeqnite in … #11

Workflow file for this run

name: Build and run tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
container:
image: ghcr.io/moldiscovery/centos7:latest
credentials:
username: ${{ github.actor }}
password: ${{ github.token }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Download Qt from releases
uses: robinraju/[email protected]
with:
repository: "moldiscovery/build-qt"
tag: qt-5.15.8-1-linux
fileName: qt-5.15.8-1-linux.tar.xz
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Extract Qt and Add Qt to $PATH
run: |
tar xvf qt-5.15.8-1-linux.tar.xz -C /
echo "/Qt/bin" >> $GITHUB_PATH
- name: Configure CMake
shell: scl enable devtoolset-8 -- bash {0}
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=ON
- name: Build
shell: scl enable devtoolset-8 -- bash {0}
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Run Tests
env:
QT_QPA_PLATFORM: offscreen
shell: scl enable devtoolset-8 -- bash {0}
# working-directory: ${{github.workspace}}/build
# can't use ${github.workspace} above because of https://github.com/actions/runner/issues/2058
run: |
cd ${{github.workspace}}/build
ctest -C ${{env.BUILD_TYPE}}
echo "TEST_LOGFILE=${{github.workspace}}/build/Testing/Temporary/LastTest.log" >> $GITHUB_ENV
- name: Save test log
uses: actions/upload-artifact@v3
with:
name: LastTest.log
path: ${{env.TEST_LOGFILE}}
retention-days: 90
if-no-files-found: warn