-
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
Changes from 11 commits
2156239
88a1cf4
4e1b86a
0ba2417
92c8f31
567be16
ad93ce1
edf9253
c241623
63f6f6d
c605aaf
91876fa
443b851
ead6f39
9bb35b1
a802991
26be36b
f690b39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,20 +18,21 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
os: [ubuntu-latest] | ||
build_type: [Debug, Release] | ||
compiler_version: [9] | ||
compiler_libcxx: [libstdc++11] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install prerequisites | ||
run: | | ||
sudo apt-get install -y --no-install-recommends g++-8 | ||
sudo pip3 install --upgrade setuptools pip | ||
sudo pip3 install conan | ||
- name: Install compiler | ||
run: sudo apt-get install -y --no-install-recommends g++-${{ matrix.compiler_version }} | ||
- name: Install Conan | ||
uses: turtlebrowser/get-conan@main | ||
- name: Configure Conan | ||
run: conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force | ||
run: | | ||
conan profile detect | ||
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force | ||
- name: Conan create | ||
run: | | ||
REFNAME="${GITHUB_REF#refs/*/}" | ||
|
@@ -42,9 +43,9 @@ jobs: | |
SHORT_REFNAME="${REFNAME:0:40}" | ||
CHANNEL="testing-${SHORT_REFNAME//\//_}" | ||
fi | ||
conan create -s build_type=${{ matrix.build_type }} -s compiler.version=${{ matrix.compiler_version }} -s compiler.libcxx=${{ matrix.compiler_libcxx }} -b missing . osp/${CHANNEL} | ||
conan create -s build_type=${{ matrix.build_type }} -s compiler.version=${{ matrix.compiler_version }} -s compiler.libcxx=${{ matrix.compiler_libcxx }} -b missing . --user=osp --channel=${CHANNEL} | ||
- name: Conan upload | ||
run: conan upload --all --confirm --remote osp 'proxyfmu*' | ||
run: conan upload --confirm --remote osp 'proxyfmu*' | ||
|
||
|
||
conan-on-windows: | ||
|
@@ -58,12 +59,12 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install prerequisites | ||
run: | | ||
pip3 install --upgrade setuptools pip | ||
pip3 install conan | ||
- name: Install Conan | ||
uses: turtlebrowser/get-conan@main | ||
- name: Configure Conan | ||
run: conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force | ||
run: | | ||
conan profile detect | ||
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force | ||
- name: Conan create | ||
shell: bash | ||
run: | | ||
|
@@ -75,6 +76,6 @@ jobs: | |
SHORT_REFNAME="${REFNAME:0:40}" | ||
CHANNEL="testing-${SHORT_REFNAME//\//_}" | ||
fi | ||
conan create -s build_type=${{ matrix.build_type }} -b missing . osp/${CHANNEL} | ||
conan create -s build_type=${{ matrix.build_type }} -b missing . --user=osp --channel=${CHANNEL} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the build process for conan2 has been changed, it would be good to have an updated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current README simply refers users to the CI workflow setup for instructions. This is good in the sense that the instructions will always be up-to-date and known to work, but it is unfortunate in the sense that it requires users to have at least some understanding of the GitHub workflow definition files. Do I understand you correctly that you wish me to add the instructions to the README? (If not, I still have to update the link to the workflow file, since I changed its name.) |
||
- name: Conan upload | ||
run: conan upload --all --confirm --remote osp 'proxyfmu*' | ||
run: conan upload --confirm --remote osp 'proxyfmu*' |
This file was deleted.
This file was deleted.
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.
Are we skipping test step by removing build.yml?
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.
Oops, you're right. I've restored the deleted workflow and cleaned it up a bit.