Skip to content

Commit

Permalink
Update build-matrix.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunner246 authored Sep 23, 2024
1 parent 6dc96c7 commit 6f0a562
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/build-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,23 @@ jobs:
echo "Contents of output directory:"
ls -R ${{ github.workspace }}/output/bin/release
- name: Run tests on both platforms
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
for test_exe in ${{ github.workspace }}/build/*_tests; do
echo "Running $test_exe"
"$test_exe"
done
elif [[ "$RUNNER_OS" == "Windows" ]]; then
Get-ChildItem -Path "${{ github.workspace }}\build\*_tests.exe" | ForEach-Object {
echo "Running $($_.FullName)"
& $_.FullName
}
fi
# run tests for Linux
- name: Run tests on Linux
if: runner.os == 'Linux'
shell: bash
run: |
for test_exe in ${{ github.workspace }}/build/*_tests; do
echo "Running $test_exe"
"$test_exe"
done
# run tests for Windows
- name: Run tests on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
Get-ChildItem -Path "${{ github.workspace }}\build\*_tests.exe" | ForEach-Object {
echo "Running $($_.FullName)"
& $_.FullName
}

0 comments on commit 6f0a562

Please sign in to comment.