mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Build demo for macOS
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
demo-macos:
|
|
name: Build
|
|
runs-on: macos-12
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: extractions/setup-just@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Install toolchain
|
|
shell: bash
|
|
run: |
|
|
just stable-toolchain
|
|
just stable-targets x86_64-apple-darwin
|
|
- uses: Swatinem/rust-cache@v1
|
|
- 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
|