moved d3d9 device reset to a hopefully better spot #170
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: Conan | |
on: | |
pull_request: | |
push: | |
release: | |
types: published | |
jobs: | |
build-cmake: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
platform: ['null', 'gl3', 'd3d9'] | |
gl3_gfxlib: ['glfw', 'sdl2'] | |
exclude: | |
- os: ubuntu-latest | |
platform: d3d9 | |
- os: macos-latest | |
platform: d3d9 | |
- platform: 'null' | |
gl3_gfxlib: sdl2 | |
- platform: d3d9 | |
gl3_gfxlib: sdl2 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: "Setup conan" | |
run: | | |
python -m pip install conan | |
conan config init | |
- name: "Create host profile" | |
shell: bash | |
run: | | |
cp ~/.conan/profiles/default host_profile | |
- name: "Download/build dependencies (conan install)" | |
run: | | |
conan install ${{ github.workspace }} librw/master@ -if build -o librw:platform=${{ matrix.platform }} -o librw:gl3_gfxlib=${{ matrix.gl3_gfxlib }} --build missing -pr:h ./host_profile -pr:b default | |
env: | |
CONAN_SYSREQUIRES_MODE: enabled | |
- name: "Build librw (conan build)" | |
run: | | |
conan build ${{ github.workspace }} -if build -bf build -pf package | |
- name: "Package librw (conan package)" | |
run: | | |
conan package ${{ github.workspace }} -if build -bf build -pf package | |
- name: "Create binary package (cpack)" | |
working-directory: ./build | |
run: | | |
cpack | |
- name: "Archive binary package (github artifacts)" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: "${{ matrix.os }}-${{ matrix.platform }}" | |
path: build/*.tar.xz | |
if-no-files-found: error |