Use cmake --build
@@ -22,14 +22,12 @@ jobs:
- name: Build
run: |
- mkdir ../build
- cd ../build
- cmake -G Ninja -DBUILD_TESTING=ONs ../pupnp
- ninja
+ cmake -G Ninja -DBUILD_TESTING=ON -S . -B build
+ cmake --build build
- name: Test
run: |
- cd ../build
+ cd build
ctest --output-on-failure
windows:
@@ -57,14 +55,12 @@ jobs:
set-content env:\"$name" $value
}
}
- mkdir ../build
- cd ../build
- cmake -G Ninja -DDOWNLOAD_AND_BUILD_DEPS=ON -DBUILD_TESTING=ON ../pupnp
- ninja
+ cmake -G Ninja -DBUILD_TESTING=ON -DDOWNLOAD_AND_BUILD_DEPS=ON -S . -B build
+ cmake --build build
- name: Test
run: |
- cd ../build
+ cd build
ctest -E pthread4w --output-on-failure # Exclude pthread4w tests on windows
macos:
@@ -73,7 +69,7 @@ jobs:
strategy:
matrix:
- os: [macos-10.13, macos-10.15, macos-11.0]
+ os: [macos-latest] # macos-10.15, macos-11.0
fail-fast: false
steps:
@@ -84,14 +80,12 @@ jobs:
- name: Build
run: |
- mkdir ../build
- cd ../build
- cmake -G Ninja -DBUILD_TESTING=ON ../pupnp
- ninja
+ cmake -G Ninja -DBUILD_TESTING=ON -S . -B build
+ cmake --build build
- name: Test
run: |
- cd ../build
+ cd build
ctest --output-on-failure
build_asan:
