Skip to content

Fix build script permissions, update build matrix #102

Fix build script permissions, update build matrix

Fix build script permissions, update build matrix #102

Workflow file for this run

---
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
env:
PKG_REFERENCE: >-
${{ matrix.conan == '1.0' &&
format('{0}@{1}/{2}', matrix.version, 'sintef', matrix.channel) ||
format('--version {0} --user {1} --channel {2}', matrix.version, 'sintef', matrix.channel) }}
USER_CHANNEL: "${{ matrix.conan == '1.0' && 'sintef/stable' || '--user sintef --channel stable' }}"
UPLOAD_FLAGS: "${{ matrix.conan == '1.0' && '--all' || '' }}"
strategy:
fail-fast: false
matrix:
conan: ["1.0", "2.0"]
profile: [msvc17]
compiler_version: [191]
build_type: [Debug, Release]
option_include_cs: [include_cs=True, include_cs=False]
version: ["6.9.210323"]
channel: ["${{ (github.head_ref || github.ref_name) == 'master' && 'stable' || 'testing' }}"]
steps:
- uses: actions/checkout@v3
- name: Install prerequisites
run: |
pip3 install --upgrade setuptools pip
pip3 install --upgrade conan~=${{ matrix.conan }}
- name: Configure Conan
run: conan remote add sintef ${{ env.CONAN_UPLOAD }}
- name: Get package name Conan 1
if: matrix.conan == '1.0'
shell: pwsh
run: |
$package_name=conan inspect --raw name .
echo "package_name=$package_name" >> $Env:GITHUB_ENV
- name: Get package name Conan 2
if: matrix.conan == '2.0'
shell: pwsh
run: |
$package_name=conan inspect -f json . | jq .name -r
echo "package_name=$package_name" >> $Env:GITHUB_ENV
- name: Conan create
run: |
conan config install ${{ env.CONFIG_URL }} --type git -sf conan${{ matrix.conan }}
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 }} `
-b missing -b outdated -b ${{ env.package_name }}* `
-o ${env:package_name}/*:${{matrix.option_include_cs}} `
. ${{ env.PKG_REFERENCE }}
- name: Conan upload
run: conan upload --confirm -r sintef ${{ env.package_name }}* --force ${{ env.UPLOAD_FLAGS }}
# choco install cyg-get
# cyg-get gcc-core make git perl bison flex gawk zip unzip dos2unix