This commit is contained in:
Mark Suckerberg
2025-12-30 14:37:26 -06:00
parent 1b67f1c14b
commit 20bc2837e6

View File

@@ -1,33 +1,42 @@
name: Build name: Build
on: on:
push: push:
jobs: jobs:
build: build:
name: ${{ matrix.name }} name: ${{ matrix.name }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- name: Linux - name: Linux
os: ubuntu-latest os: ubuntu-latest
platform: linux platform: linux
- name: Windows - name: Windows
os: windows-latest os: windows-latest
platform: win platform: win
steps: steps:
- name: Checkout Project - name: Checkout Project
uses: actions/checkout@v6 uses: actions/checkout@v6
with: with:
submodules: 'recursive' submodules: "recursive"
- name: CMake Configure
run: |
mkdir build
cmake -S . -B ./build
- name: Linux Build
if: matrix.platform == 'linux'
run: make -C build
- name: Windows Build
if: matrix.platform == 'win'
run: |
cd build
msbuild snivy.vcxproj
- name: CMake
run: |
mkdir build
cd build
cmake ..
cmake --build .