-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31e8e19
commit 9c403ec
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build_and_test: | ||
name: "Run tests on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # show all errors for each platform (vs. cancel jobs on error) | ||
matrix: | ||
os: [ubuntu-latest, windows-2022, macos-latest] | ||
|
||
steps: | ||
# - name: Install Linux Deps | ||
# if: runner.os == 'Linux' | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libsamplerate-dev | ||
|
||
- name: Get latest CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: CMake Configure | ||
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
|
||
- name: CMake Build | ||
run: cmake --build build --config RelWithDebInfo --parallel | ||
|
||
- name: CMake Test | ||
run: | | ||
ctest --test-dir build -C RelWithDebInfo --show-only | ||
ctest --test-dir build -C RelWithDebInfo -j4 |