2021-09-30 13:05:56 +02:00

52 lines
1.4 KiB
YAML

on:
push:
branches:
- main
name: conan
jobs:
run-conan:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- name: Ubuntu
os: ubuntu-latest
- name: Windows
os: windows-2016
name: ${{ matrix.config.name }}
env:
DXSDK_DIR: C:\apps\Microsoft DirectX SDK\
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install Conan
run: pip install -U conan pyyaml
- name: Fix libstdc++11
if: startsWith(matrix.config.os, 'ubuntu')
run: |
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Install DX9 SDK
if: startsWith(matrix.config.os, 'windows')
shell: cmake -P {0}
run: |
file(MAKE_DIRECTORY $ENV{DXSDK_DIR})
file(DOWNLOAD http://prdownloads.sourceforge.net/rigs-of-rods/DirectX-SDK.zip "$ENV{TMP}/DirectX.zip" SHOW_PROGRESS)
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf "$ENV{TMP}/DirectX.zip" WORKING_DIRECTORY "$ENV{DXSDK_DIR}")
- name: Run
env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }}
run: |
conan remote add ror-v2 https://artifactory.anotherfoxguy.com/artifactory/api/conan/rigs-of-rods
python build.py