Skip to content

macos-engine

macos-engine #377

Workflow file for this run

name: macOS
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
repository_dispatch:
types: [macos-engine]
jobs:
build:
strategy:
fail-fast: false
matrix:
toolsets: [
{host: [macOS, ARM64, self-hosted], preset: arm64-macos-ninja-llvm},
# TODO: Figure out xcode build
]
name: ${{matrix.toolsets.preset}} on ${{matrix.toolsets.host[0]}}
runs-on: ${{matrix.toolsets.host}}
steps:
- name: Clone TheHighSeas
uses: actions/checkout@v3
with:
lfs: 'true'
path: ./thehighseas
- name: Clone Toybox
uses: actions/checkout@v3
with:
repository: HoneybunchBuilder/toybox
lfs: 'true'
path: ./toybox
- name: Configure
working-directory: ./thehighseas
run: cmake --preset ${{matrix.toolsets.preset}} -DCOOK_ASSETS=OFF
- name: Build Debug
working-directory: ./thehighseas
run: cmake --build --preset debug-${{matrix.toolsets.preset}}
- name: Build RelWithDebInfo
working-directory: ./thehighseas
run: cmake --build --preset relwithdebinfo-${{matrix.toolsets.preset}}
- name: Build Release
working-directory: ./thehighseas
run: cmake --build --preset release-${{matrix.toolsets.preset}}
deploy:
needs: build
name: Deploy
runs-on: [macOS, ARM64, self-hosted]
steps:
- name: Clone TheHighSeas
uses: actions/checkout@v3
with:
lfs: 'true'
path: ./thehighseas
- name: Clone Toybox
uses: actions/checkout@v3
with:
repository: HoneybunchBuilder/toybox
lfs: 'true'
path: ./toybox
- name: Configure
working-directory: ./thehighseas
run: cmake --preset arm64-macos-ninja-llvm -DFINAL=ON -DPROFILE_TRACY=OFF
- name: Build Release
working-directory: ./thehighseas
run: cmake --build --preset release-arm64-macos-ninja-llvm
- name: Upload to Steam Prerelease
working-directory: ./thehighseas
run: steamcmd +login ${{ secrets.STEAM_USERNAME }} +run_app_build ${{ github.workspace }}/thehighseas/steam/macos.vdf +quit