mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-21 12:40:04 +00:00
Added CI, testing builds for Linux, MacOS & Windows
This commit is contained in:
parent
cbe8715b02
commit
0fc94802b1
64
.github/workflows/check-build.yaml
vendored
Normal file
64
.github/workflows/check-build.yaml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user