mirror of
https://github.com/Alcaro/Flips.git
synced 2026-03-21 17:45:09 -05:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Build unoptimized
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
strategy:
|
|
matrix:
|
|
target: ['gtk', 'cli']
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
filter: tree:0
|
|
- name: Dependencies
|
|
run: sudo apt -y install libgtk-3-dev
|
|
- name: Make target ${{ matrix.target }}
|
|
run: TARGET=${{ matrix.target }} make
|
|
|
|
macos:
|
|
strategy:
|
|
matrix:
|
|
target: ['gtk', 'cli']
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
filter: tree:0
|
|
- name: Dependencies
|
|
run: brew install gtk+3 libomp llvm
|
|
- name: Make target ${{ matrix.target }}
|
|
# Using brew's llvm, because apple's does not support -fopenmp
|
|
run: CXX=/opt/homebrew/opt/llvm/bin/clang++ TARGET=${{ matrix.target }} make
|
|
|
|
windows:
|
|
strategy:
|
|
matrix:
|
|
target: ['windows', 'cli']
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
filter: tree:0
|
|
# Build using MSVC. It currently warns on a bit of stuff because apparently -Wall warns on basically everything
|
|
# Also yes, using mvsc requires either shenanigans or a seperate action.
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
- name: Make target ${{ matrix.target }}
|
|
run: $env:CXX='cl.exe'; $env:TARGET='${{ matrix.target }}'; make
|