72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
name: conan
|
|
|
|
jobs:
|
|
run-conan:
|
|
runs-on: ${{ matrix.config.os }}
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
config:
|
|
- name: Ubuntu Debug
|
|
os: ubuntu-latest
|
|
conan-profile: ubuntu-debug
|
|
- name: Ubuntu Release
|
|
os: ubuntu-latest
|
|
conan-profile: ubuntu-release
|
|
|
|
- name: Windows 2019 Debug
|
|
os: windows-2019
|
|
conan-profile: vs-2019-debug
|
|
- name: Windows 2019 Release
|
|
os: windows-2019
|
|
conan-profile: vs-2019-release
|
|
|
|
- name: Windows 2022 Debug
|
|
os: windows-2022
|
|
conan-profile: vs-2022-debug
|
|
- name: Windows 2022 Release
|
|
os: windows-2022
|
|
conan-profile: vs-2022-release
|
|
|
|
name: ${{ matrix.config.name }}
|
|
env:
|
|
DXSDK_DIR: C:\apps\Microsoft DirectX SDK\
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v3
|
|
|
|
- name: Install Conan
|
|
run: |
|
|
pip install -r requirements.txt
|
|
conan profile new default --detect
|
|
|
|
- name: Fix libstdc++11
|
|
if: startsWith(matrix.config.os, 'ubuntu')
|
|
run: 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 https://cdn.anotherfoxguy.com/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: Enable Developer Command Prompt
|
|
uses: ilammy/msvc-dev-cmd@v1.10.0
|
|
|
|
- name: Run
|
|
env:
|
|
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}
|
|
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }}
|
|
CONAN_PROFILE: ${{ matrix.config.conan-profile }}
|
|
run: |
|
|
conan remote add ror-v2 https://artifactory.anotherfoxguy.com/artifactory/api/conan/rigs-of-rods
|
|
python build.py
|