From cd76f59af6852d577c334e75a9fae16b1f3b572f Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 12 May 2020 20:26:17 +0200 Subject: [PATCH] :construction_worker: add more GitHub actions workflows --- .github/workflows/macos.yml | 19 +++++++++++++++++++ .github/workflows/{ccpp.yml => ubuntu.yml} | 4 ++-- .github/workflows/windows.yml | 19 +++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/macos.yml rename .github/workflows/{ccpp.yml => ubuntu.yml} (93%) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 000000000..f00d5ff3a --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,19 @@ +name: Windows + +on: [push] + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + - name: prepare + run: mkdir build + - name: cmake + run: cd build ; cmake .. + - name: build + run: make -C build + - name: test + run: cd build ; ctest -j 10 diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ubuntu.yml similarity index 93% rename from .github/workflows/ccpp.yml rename to .github/workflows/ubuntu.yml index c6f8afb3c..cedc02789 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ubuntu.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Ubuntu on: [push] @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: prepare diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 000000000..1116e1ca8 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,19 @@ +name: macOS + +on: [push] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v1 + - name: prepare + run: mkdir build + - name: cmake + run: cd build ; cmake .. + - name: build + run: make -C build + - name: test + run: cd build ; ctest -j 10