Fix CI #585
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: CMake Renderer | |
on: | |
push: | |
branches: [ "master", "dev", "dev-ndy", "dev-sge", "dev-vge" ] | |
paths: ['lib/renderer/**', '.github/workflows/cmake_renderer.yml'] | |
env: | |
CMAKELISTS_DIR: ${{github.workspace}}/lib/renderer | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019, ubuntu-22.04, macos-12] | |
fail-fast: false | |
steps: | |
- name: Set git to use CRLF | |
run: | | |
git config --global core.autocrlf true | |
git config --global core.eol crlf | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get Conan | |
uses: turtlebrowser/[email protected] | |
- name: Create default profile | |
run: conan profile detect --force | |
- name: Add custom remote | |
run: | | |
conan remote add --insecure cano7782 ${{ secrets.CONAN_SERVER_HOST }} | |
conan remote login -p ${{ secrets.CONAN_SERVER_PASSWORD }} cano7782 ${{ secrets.CONAN_SERVER_USER }} | |
- name: Create package | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: | | |
conan export ../util | |
conan create . -b missing -s compiler.cppstd=20 -o vtx_renderer/*:test=True | |
- name: Create benchmarker | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: | | |
conan export ../core | |
conan export ../io | |
conan create bench -b missing -s compiler.cppstd=20 -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True --format=json > output.json | |
- name: Upload dependencies | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: | | |
conan upload sdl -r=cano7782 | |
conan upload imgui -r=cano7782 | |
conan upload stb -r=cano7782 | |
conan upload catch2 -r=cano7782 | |
- name: Read package path from output.json | |
id: read_package_path | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: echo "PACKAGE_PATH=$(jq -r '.graph.nodes["1"].package_folder' output.json)" >> "$GITHUB_OUTPUT" | |
shell: bash | |
- uses: actions/[email protected] | |
env: | |
PACKAGE_PATH: ${{ steps.read_package_path.outputs.PACKAGE_PATH }} | |
with: | |
name: VTXRendererBench_${{runner.os}} | |
path: ${{env.PACKAGE_PATH}} |