From 0fc94802b119f4cea592c1cf3d484e3375b4b89f Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 14 Mar 2022 00:31:30 -0500 Subject: [PATCH] Added CI, testing builds for Linux, MacOS & Windows --- .github/workflows/check-build.yaml | 64 ++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/check-build.yaml diff --git a/.github/workflows/check-build.yaml b/.github/workflows/check-build.yaml new file mode 100644 index 0000000..e8d1e29 --- /dev/null +++ b/.github/workflows/check-build.yaml @@ -0,0 +1,64 @@ +name: Check Builds + +on: + push: + paths: + - lib/** + - bot/** + - cnc/** + - shell/** + - tools/** + - cmake-modules/** + - .github/workflows/check-build.yaml + - CMakeLists.txt + +jobs: + ubuntu-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install dependencies + run: sudo apt install clang cmake -y + - name: Create CMake build files + run: cmake -B build + - name: Check compilation + run: cmake --build build + - name: Upload build artifact + uses: actions/upload-artifact@v2 + with: + name: laika-demo-binaries-ubuntu + path: bin + + windows-build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Create CMake build files + run: cmake -B build + - name: Check compilation + run: cmake --build build + - name: Upload build artifact + uses: actions/upload-artifact@v2 + with: + name: laika-demo-binaries-windows + path: bin + + macOS-build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Create CMake build files + run: cmake -B build + - name: Check compilation + run: cmake --build build + - name: Upload build artifact + uses: actions/upload-artifact@v2 + with: + name: laika-demo-binaries-macos + path: bin \ No newline at end of file