Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@ jobs:
build:
strategy:
matrix:
os: ['windows-latest', 'macOS-latest']
include:
- os: 'windows-latest'
generator: 'Ninja'
- os: 'windows-latest'
generator: 'Ninja Multi-Config'
- os: 'windows-latest'
generator: 'Visual Studio 17 2022'
- os: 'macOS-latest'
generator: 'Ninja'
- os: 'macOS-latest'
generator: 'Ninja Multi-Config'
- os: 'macOS-latest'
generator: 'Unix Makefiles'

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -57,17 +69,24 @@ jobs:
- name: Config Conan Remote
run: conan remote add explosion https://kindem.online/artifactory/api/conan/conan

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G=Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCI=ON
- name: Configure Engine
run: cmake -B ${{github.workspace}}/build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCI=ON

- name: Build
- name: Build Engine
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j ${{env.MAKE_THREAD_NUM}}

- name: Test
- name: Test Engine
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --extra-verbose

- name: Install
- name: Install Engine
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install -j ${{env.MAKE_THREAD_NUM}}

# TODO build test project
- name: Configure Test Project
run: cmake -S ${{github.workspace}}/TestProject -B ${{github.workspace}}/TestProject/build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENGINE_ROOT=${{github.workspace}}/Installed

- name: Build Test Project
run: cmake --build ${{github.workspace}}/TestProject/build --config ${{env.BUILD_TYPE}} -j ${{env.MAKE_THREAD_NUM}}

- name: Install Test Project
run: cmake --build ${{github.workspace}}/TestProject/build --config ${{env.BUILD_TYPE}} --target install -j ${{env.MAKE_THREAD_NUM}}
Loading