mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-12-04 14:36:01 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Check Builds
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- src/**
|
|
- util/**
|
|
- main.c
|
|
- Makefile
|
|
- CMakeLists.txt
|
|
- .github/workflows/check_build.yaml
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
ubuntu-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: CMake
|
|
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
|
|
- name: Build
|
|
run: cmake --build build --config Release
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Cosmo-Ubuntu
|
|
path: build/bin
|
|
|
|
windows-build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Create CMake build files
|
|
run: cmake -B build -DCMAKE_BUILD_TYPE=MinSizeRel
|
|
- name: Check compilation
|
|
run: cmake --build build --config MinSizeRel
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Cosmo-Windows
|
|
path: build/bin |