2023-08-31 01:02:04 +00:00
|
|
|
name: Check Builds
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- src/**
|
2023-09-01 04:16:28 +00:00
|
|
|
- util/**
|
2023-08-31 01:02:04 +00:00
|
|
|
- main.c
|
|
|
|
- Makefile
|
|
|
|
- CMakeLists.txt
|
2023-08-31 02:30:20 +00:00
|
|
|
- .github/workflows/check_build.yaml
|
2023-08-31 01:12:06 +00:00
|
|
|
workflow_dispatch:
|
2023-08-31 01:02:04 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu-build:
|
2023-08-31 02:28:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-08-31 01:02:04 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: CMake
|
2023-08-31 01:09:06 +00:00
|
|
|
run: cmake -B build
|
2023-08-31 01:02:04 +00:00
|
|
|
- name: Build
|
|
|
|
run: cmake --build build
|
|
|
|
- name: Upload build artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Cosmo-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 -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-08-31 01:09:06 +00:00
|
|
|
path: bin
|