mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Build demo for macOS
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
demo-macos:
|
|
name: Build
|
|
runs-on: macos-12
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup binstall
|
|
uses: ./.github/actions/setup-binstall
|
|
- name: Install just
|
|
uses: ./.github/actions/cargo-install
|
|
with:
|
|
name: just
|
|
- name: Install toolchain
|
|
shell: bash
|
|
run: |
|
|
just stable-toolchain
|
|
just stable-targets x86_64-apple-darwin
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Build
|
|
shell: bash
|
|
run: cd apple/xcode && xcodebuild -scheme "example (macOS)" build CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=10.9 -derivedDataPath build
|
|
- name: Check x86_64 darwin
|
|
shell: bash
|
|
run: just check maplibre-demo x86_64-apple-darwin
|
|
- name: Test x86_64 darwin
|
|
shell: bash
|
|
run: just test maplibre-demo x86_64-apple-darwin
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: maplibre-x86_64-apple-darwin-demo
|
|
path: apple/xcode/build/Build/Products/Debug/*.app
|
|
if-no-files-found: error
|