From e128bd25540f8fed6a3ba8a3b445c0cb548c3254 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 7 Sep 2020 16:53:43 -0500 Subject: [PATCH] chore(ci): add push workflow --- .github/workflows/push.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..417bb4f --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,39 @@ +name: Push + +on: + push: + branches: + - master + +jobs: + build: + name: ${{ matrix.config.name }} + runs-on: ${{ matrix.config.os }} + + strategy: + fail-fast: false + matrix: + config: + - name: Ubuntu Latest (GCC) + os: ubuntu-latest + build_type: Release + cc: "gcc" + cxx: "g++" + + - name: "macOS Latest (Clang)" + os: macos-latest + build_type: "Release" + cc: "clang" + cxx: "clang++" + + steps: + - uses: actions/checkout@v2 + + - name: Prepare + run: mkdir build + + - name: Configure + run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + + - name: Build + run: cd build && make