-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Attempt migration to conan version 2. Fails when finding Thrift executable as the provided FindTHRIFT.cmake is not used. * Update to Conan 2 * Try a different way to get Conan in GitHub Actions * Actually install the intended GCC version * Set the CONAN_EXPORTED CMake variable again * Revert to using specific dependency versions * Try a different way of specifying dependencies * Adapt to Thrift dependency version constraints * Use Conan 1.x in the "Build" GH Actions workflow * Support recent Conan 1.x versions too * Remove support for running Conan from within CMake * Reinstate tests on CI, clean up workflows * Add OSP remote in build+test workflow * Fix toolchain path on Windows CI * Quote Windows path and try newer Linux distro * Github action update * Github action update * Uploading artifacts to jfrog gcc9 builds are not available from conancenter. Built libraries are uploaded to osp jfrog. --------- Co-authored-by: kristoffere <kristoffer.eide@sintef.no> Co-authored-by: David Heejong Park <hee.jong.park@dnv.com> Co-authored-by: David Heejong Park <88651540+davidhjp01@users.noreply.github.com>
- Loading branch information
1 parent
91fa071
commit 748059f
Showing
14 changed files
with
180 additions
and
1,112 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Build and test | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
linux: | ||
name: Linux | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CC: gcc-${{ matrix.compiler_version }} | ||
CXX: g++-${{ matrix.compiler_version }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
build_type: [Debug, Release] | ||
compiler_version: [ 9 ] | ||
compiler_libcxx: [ libstdc++11 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Conan | ||
uses: turtlebrowser/get-conan@main | ||
- name: Configure Conan | ||
run: | | ||
conan profile detect | ||
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force | ||
- name: Install dependencies | ||
run: conan install --build=missing --output-folder=build -s build_type=${{ matrix.build_type }} . | ||
- name: Generate build system | ||
working-directory: build | ||
run: > | ||
cmake .. | ||
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-DPROXYFMU_BUILD_EXAMPLES=ON | ||
-DPROXYFMU_BUILD_TESTS=ON | ||
- name: Build | ||
working-directory: build | ||
run: cmake --build . | ||
- name: Test | ||
run: cd build/tests && ctest --output-on-failure --extra-verbose | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.build_type == 'Release' | ||
with: | ||
name: proxyfmu | ||
path: build/bin/proxyfmu* | ||
|
||
windows: | ||
name: Windows | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-2019] | ||
build_type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Conan | ||
uses: turtlebrowser/get-conan@main | ||
- name: Configure Conan | ||
run: | | ||
conan profile detect | ||
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force | ||
- name: Install dependencies | ||
run: conan install --build=missing --output-folder=build -s build_type=${{ matrix.build_type }} . | ||
- name: Generate build system | ||
working-directory: build | ||
shell: bash | ||
run: > | ||
cmake .. | ||
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake | ||
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW | ||
-DPROXYFMU_BUILD_EXAMPLES=ON | ||
-DPROXYFMU_BUILD_TESTS=ON | ||
- name: Build | ||
working-directory: build | ||
run: cmake --build . --config ${{ matrix.build_type }} | ||
- name: Test | ||
run: cd build/tests && ctest -C ${{ matrix.build_type }} --output-on-failure --extra-verbose | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.build_type == 'Release' | ||
with: | ||
name: proxyfmu | ||
path: build/bin/proxyfmu* |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
thrift.* | ||
|
||
cmake-build-* | ||
|
||
CMakeUserPresets.json |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.