Skip to content

Commit

Permalink
Try out test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Jul 28, 2024
1 parent 4021b17 commit a050d8f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- build/*.targets
- build/*.yml

env:
DIRECTXMESH_MEDIA_PATH: ${{ github.workspace }}/Media

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -79,6 +82,14 @@ jobs:
path: Tests
ref: main

- if: ${{ matrix.build_type }} == 'x64-Release'
name: Clone media repository
uses: actions/checkout@v4
with:
repository: walbourn/directxmeshmedia
path: Media
ref: main

- name: 'Install Ninja'
run: choco install ninja

Expand All @@ -93,3 +104,8 @@ jobs:
- name: 'Build'
working-directory: ${{ github.workspace }}
run: cmake --build out\build\${{ matrix.build_type }}

- if: ${{ matrix.build_type }} == 'x64-Release'
name: 'Test'
working-directory: ${{ github.workspace }}
run: ctest --preset=x64-Release

0 comments on commit a050d8f

Please sign in to comment.