-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Conan 2 #92
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2156239
Attempt migration to conan version 2. Fails when finding Thrift execu…
88a1cf4
Update to Conan 2
kyllingstad 4e1b86a
Try a different way to get Conan in GitHub Actions
kyllingstad 0ba2417
Actually install the intended GCC version
kyllingstad 92c8f31
Set the CONAN_EXPORTED CMake variable again
kyllingstad 567be16
Revert to using specific dependency versions
kyllingstad ad93ce1
Try a different way of specifying dependencies
kyllingstad edf9253
Adapt to Thrift dependency version constraints
kyllingstad c241623
Use Conan 1.x in the "Build" GH Actions workflow
kyllingstad 63f6f6d
Support recent Conan 1.x versions too
kyllingstad c605aaf
Remove support for running Conan from within CMake
kyllingstad 91876fa
Reinstate tests on CI, clean up workflows
kyllingstad 443b851
Add OSP remote in build+test workflow
kyllingstad ead6f39
Fix toolchain path on Windows CI
kyllingstad 9bb35b1
Quote Windows path and try newer Linux distro
kyllingstad a802991
Github action update
davidhjp01 26be36b
Github action update
davidhjp01 f690b39
Uploading artifacts to jfrog
davidhjp01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outputs are not copied to
bin
directory. This is because we do not callconan_output_dirs_setup
in conan2.We need to either copy the following (from conanv1) to our cmake or
--target install
all the artifacts tobin
before upload. I have not fixed this issue yet.