Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Ivar Hatledal committed Apr 9, 2021
1 parent c3e6e57 commit 1297921
Showing 1 changed file with 90 additions and 64 deletions.
154 changes: 90 additions & 64 deletions .github/workflows/ci-conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,14 @@ env:
CONAN_USE_ALWAYS_SHORT_PATHS: True

jobs:
conan-on-linux:
name: Conan

cmake-on-linux:
name: cmake
runs-on: ${{ matrix.os }}
env:
CC: gcc-${{ matrix.compiler_version }}
CXX: g++-${{ matrix.compiler_version }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04]
build_type: [Debug, Release]
compiler_version: [7, 8, 9]
compiler_libcxx: [libstdc++11]
option_proxyfmu: ['proxyfmu=True', 'proxyfmu=False']

os: [ ubuntu-18.04 ]
steps:
- uses: actions/checkout@v2
- name: Install prerequisites
Expand All @@ -34,59 +27,92 @@ jobs:
sudo pip3 install conan
- name: Configure Conan
run: conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
- name: Conan create
run: |
REFNAME="${GITHUB_REF#refs/*/}"
VERSION="v$(<version.txt)"
if [[ $GITHUB_REF == refs/tags/* ]] && [[ $REFNAME == $VERSION ]]; then CHANNEL="stable"
elif [[ $REFNAME == master ]]; then CHANNEL="testing"
else
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 }} -o ${{ matrix.option_proxyfmu }} -b missing . osp/${CHANNEL}
- name: Conan upload
- name: Run conan
run: conan install . -s build_type=Release -s compiler.libcxx=libstdc++11 -o proxyfmu=True -b missing --install-folder=build
shell: bash
- name: Configure and build
run: |
conan upload --all -c -r osp '*'
conan-on-windows:
name: Conan
runs-on: ${{ matrix.os }}
env:
CONAN_USER_HOME_SHORT: C:\c
CONAN_USE_ALWAYS_SHORT_PATHS: 1
strategy:
fail-fast: false
matrix:
os: [windows-2016]
build_type: [Debug, Release]
compiler_version: [15]
option_proxyfmu: ['proxyfmu=True', 'proxyfmu=False']
cmake -H. -Bbuild -DLIBCOSIM_USING_CONAN=ON -DLIBCOSIM_WITH_PROXYFMU=ON -DLIBCOSIM_BUILD_APIDOC=OFF
cmake --build build
shell: bash

exclude:
- os: windows-2016
build_type: Debug
option_proxyfmu: 'proxyfmu=True'

steps:
- uses: actions/checkout@v2
- name: Install prerequisites
run: |
pip3 install --upgrade setuptools pip
pip3 install conan
- name: Configure Conan
run: conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
- name: Conan create
shell: bash
run: |
REFNAME="${GITHUB_REF#refs/*/}"
VERSION="v$(<version.txt)"
if [[ $GITHUB_REF == refs/tags/* ]] && [[ $REFNAME == $VERSION ]]; then CHANNEL="stable"
elif [[ $REFNAME == master ]]; then CHANNEL="testing"
else
SHORT_REFNAME="${REFNAME:0:40}"
CHANNEL="testing-${SHORT_REFNAME//\//_}"
fi
conan create -s build_type=${{ matrix.build_type }} -s compiler.version=${{ matrix.compiler_version }} -o ${{ matrix.option_proxyfmu }} -b missing . osp/${CHANNEL}
- name: Conan upload
run: conan upload --all -c -r osp '*'
# conan-on-linux:
# name: Conan
# runs-on: ${{ matrix.os }}
# env:
# CC: gcc-${{ matrix.compiler_version }}
# CXX: g++-${{ matrix.compiler_version }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-18.04]
# build_type: [Debug, Release]
# compiler_version: [7, 8, 9]
# compiler_libcxx: [libstdc++11]
# option_proxyfmu: ['proxyfmu=True', 'proxyfmu=False']
#
# steps:
# - uses: actions/checkout@v2
# - name: Install prerequisites
# run: |
# sudo pip3 install --upgrade setuptools pip
# sudo pip3 install conan
# - name: Configure Conan
# run: conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
# - name: Conan create
# run: |
# REFNAME="${GITHUB_REF#refs/*/}"
# VERSION="v$(<version.txt)"
# if [[ $GITHUB_REF == refs/tags/* ]] && [[ $REFNAME == $VERSION ]]; then CHANNEL="stable"
# elif [[ $REFNAME == master ]]; then CHANNEL="testing"
# else
# 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 }} -o ${{ matrix.option_proxyfmu }} -b missing . osp/${CHANNEL}
# - name: Conan upload
# run: |
# conan upload --all -c -r osp '*'
#
# conan-on-windows:
# name: Conan
# runs-on: ${{ matrix.os }}
# env:
# CONAN_USER_HOME_SHORT: C:\c
# CONAN_USE_ALWAYS_SHORT_PATHS: 1
# strategy:
# fail-fast: false
# matrix:
# os: [windows-2016]
# build_type: [Debug, Release]
# compiler_version: [15]
# option_proxyfmu: ['proxyfmu=True', 'proxyfmu=False']
#
# exclude:
# - os: windows-2016
# build_type: Debug
# option_proxyfmu: 'proxyfmu=True'
#
# steps:
# - uses: actions/checkout@v2
# - name: Install prerequisites
# run: |
# pip3 install --upgrade setuptools pip
# pip3 install conan
# - name: Configure Conan
# run: conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
# - name: Conan create
# shell: bash
# run: |
# REFNAME="${GITHUB_REF#refs/*/}"
# VERSION="v$(<version.txt)"
# if [[ $GITHUB_REF == refs/tags/* ]] && [[ $REFNAME == $VERSION ]]; then CHANNEL="stable"
# elif [[ $REFNAME == master ]]; then CHANNEL="testing"
# else
# SHORT_REFNAME="${REFNAME:0:40}"
# CHANNEL="testing-${SHORT_REFNAME//\//_}"
# fi
# conan create -s build_type=${{ matrix.build_type }} -s compiler.version=${{ matrix.compiler_version }} -o ${{ matrix.option_proxyfmu }} -b missing . osp/${CHANNEL}
# - name: Conan upload
# run: conan upload --all -c -r osp '*'

0 comments on commit 1297921

Please sign in to comment.