Skip to content

edit workflow

edit workflow #15

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

Invalid type for `job.strategy`
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
strategy:
matrix:
os: [macos-latest, macos-13]
include:
- os: macos-latest
arch: arm64
include:
- os: macos-13
arch: x86
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# - name: Install LLVM and Clang
# uses: KyleMayes/install-llvm-action@v2
# with:
# version: "19.1"
- name: Install dependencies on macOS
run: |
brew install llvm
brew install boost
brew install ninja
- name: Configure CMake
run: >
cmake -B build/release
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-GNinja
-DCMAKE_C_COMPILER="$(brew --prefix llvm)/bin/clang"
-DCMAKE_CXX_COMPILER="$(brew --prefix llvm)/bin/clang++"
-DSDL_SHARED=OFF
-DSDL_STATIC=ON
-DBLEND2D_STATIC=ON
- name: Build neogurt
run: cmake --build build/release --target neogurt
- name: Generate package
run: make package
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Neogurt-${{ matrix.arch }}.dmg
path: build/release/*.dmg