Cosmo/.github/workflows/check_build.yaml

45 lines
1.1 KiB
YAML
Raw Normal View History

name: Check Builds
on:
push:
paths:
- src/**
2023-09-01 04:16:28 +00:00
- util/**
- main.c
- Makefile
- CMakeLists.txt
- .github/workflows/check_build.yaml
2023-08-31 01:12:06 +00:00
workflow_dispatch:
jobs:
ubuntu-build:
2023-08-31 02:28:50 +00:00
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
2023-09-01 19:43:20 +00:00
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
2023-09-01 19:43:20 +00:00
path: build/bin