Skip to content

Commit

Permalink
Update run-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
idapena committed Feb 16, 2024
1 parent 8ed4796 commit d1186ea
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,53 @@ on:
- main

jobs:
build:
test-linux:
name: Test on Linux
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up CMake
run: sudo apt-get install -y cmake
uses: cmake/setup-cmake@v1

- name: Build and test
run: |
mkdir build
cd build
cmake ..
cmake --build . --target tests
ctest
cmake .
cmake --build .
ctest --output-on-failure
test-windows:
name: Test on Windows
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up MSVC
uses: microsoft/setup-msbuild@v1

- name: Build and test
run: |
cmake .
cmake --build . --config Release
ctest --output-on-failure
test-macos:
name: Test on macOS
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up CMake
uses: cmake/setup-cmake@v1

- name: Build and test
run: |
cmake .
cmake --build .
ctest --output-on-failure

0 comments on commit d1186ea

Please sign in to comment.