mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-23 04:37:43 -05:00
Unified GitHub workflow for tests on major operating systems (#326)
This commit is contained in:
committed by
GitHub
parent
7cbef3efc8
commit
262f1e0602
22
.github/workflows/macos.yml
vendored
22
.github/workflows/macos.yml
vendored
@@ -1,22 +0,0 @@
|
|||||||
name: MacOS
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: run tests
|
|
||||||
run: |
|
|
||||||
cmake -Htest -Bbuild/test
|
|
||||||
cmake --build build/test --target test-verbose
|
|
||||||
25
.github/workflows/test.yml
vendored
Normal file
25
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: clone
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: unit tests
|
||||||
|
run: |
|
||||||
|
cmake -Htest -Bbuild/test
|
||||||
|
cmake --build build/test --target test-verbose
|
||||||
29
.github/workflows/ubuntu.yml
vendored
29
.github/workflows/ubuntu.yml
vendored
@@ -1,29 +0,0 @@
|
|||||||
name: Ubuntu
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
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
|
|
||||||
22
.github/workflows/windows.yml
vendored
22
.github/workflows/windows.yml
vendored
@@ -1,22 +0,0 @@
|
|||||||
name: Windows
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: windows-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: run tests
|
|
||||||
run: |
|
|
||||||
cmake -Htest -Bbuild/test
|
|
||||||
cmake --build build/test --target test-verbose
|
|
||||||
Reference in New Issue
Block a user