mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
Add GitHub workflows (#93)
* add mac workflow * rename and add windows and ubuntu workflows * update tests * update tests * update travis
This commit is contained in:
16
.github/workflows/macos.yml
vendored
Normal file
16
.github/workflows/macos.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: MacOS
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: macOS-10.14
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: run tests
|
||||
run: |
|
||||
cmake -Htest -Bbuild/test
|
||||
cmake --build build/test --target test-verbose
|
||||
23
.github/workflows/ubuntu.yml
vendored
Normal file
23
.github/workflows/ubuntu.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Ubuntu
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: install updates
|
||||
run: |
|
||||
wget -O cmake.sh https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.sh
|
||||
sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
cmake --version
|
||||
|
||||
- name: run tests
|
||||
run: |
|
||||
cmake -Htest -Bbuild/test
|
||||
cmake --build build/test --target test-verbose
|
||||
16
.github/workflows/windows.yml
vendored
Normal file
16
.github/workflows/windows.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Windows
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-2019
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: run tests
|
||||
run: |
|
||||
cmake -Htest -Bbuild/test
|
||||
cmake --build build/test --target test-verbose
|
||||
@@ -45,6 +45,6 @@ before_install:
|
||||
script:
|
||||
# unit tests
|
||||
- cmake -Htest -Bbuild/test
|
||||
- CTEST_OUTPUT_ON_FAILURE=1 cmake --build build/test --target test
|
||||
- cmake --build build/test --target test-verbose
|
||||
# build examples
|
||||
- python3 examples/build_all.py
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
[](https://travis-ci.com/TheLartians/CPM.cmake)
|
||||
[](https://github.com/TheLartians/CPM.cmake/actions)
|
||||
[](https://github.com/TheLartians/CPM.cmake/actions)
|
||||
[](https://github.com/TheLartians/CPM.cmake/actions)
|
||||
|
||||
<p align="center">
|
||||
<img src="./logo/CPM.png" height="100" />
|
||||
|
||||
@@ -14,4 +14,4 @@ foreach(test ${tests})
|
||||
)
|
||||
endforeach()
|
||||
|
||||
add_custom_target(test-verbose COMMAND ${CMAKE_CTEST_COMMAND} --verbose)
|
||||
add_custom_target(test-verbose COMMAND ${CMAKE_CTEST_COMMAND} -C Debug --verbose)
|
||||
|
||||
Reference in New Issue
Block a user