mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
Add build of AppFwk (#5689)
This commit is contained in:
parent
502b08ea61
commit
3083dd319a
51
.github/workflows/AppFwkUnitTest.yml
vendored
Normal file
51
.github/workflows/AppFwkUnitTest.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
name: Application Framework Build with Unit Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
ResInsight-x64:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2.5.0
|
||||
with:
|
||||
version: 5.9.9
|
||||
modules: qtscript
|
||||
mirror: 'http://mirrors.ocf.berkeley.edu/qt/'
|
||||
- name: Install Linux dependencies
|
||||
if: "contains( matrix.os, 'ubuntu')"
|
||||
run: sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev
|
||||
- name: Build AppFwk with Unit Tests
|
||||
uses: lukka/run-cmake@v0
|
||||
with:
|
||||
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
||||
cmakeListsTxtPath: '${{ github.workspace }}/Fwk/AppFwk/CMakeLists.txt'
|
||||
cmakeAppendedArgs:
|
||||
buildDirectory: ${{ github.workspace }}/cmakebuild
|
||||
buildWithCMakeArgs: '--config Release'
|
||||
useVcpkgToolchainFile: false
|
||||
- name: dir
|
||||
run: find ${{ runner.workspace }}
|
||||
if: "!contains( matrix.os, 'windows')"
|
||||
- name: dir
|
||||
run: gci -recurse ${{ runner.workspace }}
|
||||
if: contains( matrix.os, 'windows')
|
||||
- name: Run Unit Tests Windows
|
||||
if: contains( matrix.os, 'windows')
|
||||
shell: bash
|
||||
run: |
|
||||
cmakebuild/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/Release/cafPdmCore_UnitTests
|
||||
cmakebuild/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/Release/cafPdmXml_UnitTests
|
||||
cmakebuild/cafProjectDataModel/cafProjectDataModel_UnitTests/Release/cafProjectDataModel_UnitTests
|
||||
- name: Run Unit Tests Linux
|
||||
if: "!contains( matrix.os, 'windows')"
|
||||
shell: bash
|
||||
run: |
|
||||
cmakebuild/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests/cafPdmCore_UnitTests
|
||||
cmakebuild/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests/cafPdmXml_UnitTests
|
||||
cmakebuild/cafProjectDataModel/cafProjectDataModel_UnitTests/cafProjectDataModel_UnitTests
|
Loading…
Reference in New Issue
Block a user