Skip to content

Update build.yml

Update build.yml #73

Workflow file for this run

name: Build
jobs:
job:
name: ${{ matrix.os }}-${{ matrix.build-type }}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
build-type: [ Debug, Release ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure git
env:
TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/"
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config ${{ matrix.build-type }}
on: [ push ]