Feature conan recipe (#1) #3
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
--- | |
name: Windows MSVC | |
on: [push, workflow_dispatch] | |
env: | |
CONAN_UPLOAD: ${{ secrets.CONAN_URL }} | |
CONAN_PASSWORD_SINTEF: ${{ secrets.CONAN_PASSWORD }} | |
CONAN_LOGIN_USERNAME_SINTEF: ${{ secrets.CONAN_USER }} | |
CONFIG_URL: https://github.com/sintef-ocean/conan-configs.git | |
jobs: | |
conan-with-msvc: | |
name: Conan | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [2.0.4] | |
build_type: [Release] | |
profile: [msvc17] | |
compiler_version: [193] | |
channel: ["${{ (github.head_ref || github.ref_name) == 'master' && 'stable' || 'testing' }}"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install prerequisites | |
run: | | |
pip3 install --upgrade setuptools pip | |
pip3 install --upgrade conan~=2.0 | |
- name: Configure Conan | |
run: | | |
conan remote add sintef ${{ env.CONAN_UPLOAD }} | |
$pkg_name=conan inspect -f json . | jq .name -r | |
echo "pkg_name=$pkg_name" >> $Env:GITHUB_ENV | |
- name: Conan create | |
run: | | |
conan config install ${{ env.CONFIG_URL }} --type git -sf conan2.0 | |
conan config install ${{ env.CONFIG_URL }} --type git -sf profiles -tf profiles | |
conan create -s build_type=${{ matrix.build_type }} ` | |
-s compiler.version=${{ matrix.compiler_version }} ` | |
-pr:b=${{ matrix.profile }} -pr:h=${{ matrix.profile }} ` | |
--conf tools.build:skip_test=False ` | |
--version ${{ matrix.version }} --user sintef --channel ${{ matrix.channel }} ` | |
-b missing -b outdated -b ${{ env.pkg_name }}* . | |
- name: Conan upload | |
run: conan upload --confirm -r sintef ${{ env.pkg_name }}* --force |