Skip to content

bummp to v0.1.4

bummp to v0.1.4 #28

Workflow file for this run

name: Build
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
os-name: macos
arch: arm64
- os: macos-13
os-name: macos
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: Prepare Artifacts
run: |
cd build/release
echo "ARTIFACT_NAME=$(ls Neogurt*.dmg)" >> $GITHUB_ENV
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: build/release/${{ env.ARTIFACT_NAME }}