From bdbdd7700d0f09962f5d3f62b8b084262563a1bc Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Tue, 14 Apr 2020 13:55:40 +0200 Subject: [PATCH] add standalone workflow --- .github/workflows/standalone.yml | 20 ++++++++++++++++++++ CMakeLists.txt | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/standalone.yml diff --git a/.github/workflows/standalone.yml b/.github/workflows/standalone.yml new file mode 100644 index 0000000..61334d5 --- /dev/null +++ b/.github/workflows/standalone.yml @@ -0,0 +1,20 @@ +name: Standalone + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: configure + run: cmake -Hstandalone -Bbuild + + - name: build + run: cmake --build build/standalone + + - name: run + run: ./build/standalone/Greeter diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bcbaed..7dacd37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,6 @@ CPMAddPackage( # Note: # for single header libraries use `add_library(Greeter INTERFACE)` instead -# To create an executable use `add_executable(Greeter ${headers} ${sources})` add_library(Greeter ${headers} ${sources}) # Note: for single header libraries use the following instead: