mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
30 lines
795 B
YAML
30 lines
795 B
YAML
name: Macos Compile
|
|
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Install dependencies
|
|
run: brew install sdl2 libpng glew ninja cmake libzip nlohmann-json tinyxml2 spdlog
|
|
- name: Build
|
|
run: |
|
|
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build build-cmake -j
|
|
- name: Create Package
|
|
run: |
|
|
mkdir starship-release
|
|
mv build-cmake/Starship starship-release/
|
|
- name: Publish packaged artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: starship-mac-x64
|
|
path: starship-release |