mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Create a MacOS application artifact in GHA (#104)
This commit is contained in:
parent
37d2ac73a9
commit
01c45fd13f
26
.github/actions/demo/macos/action.yml
vendored
Normal file
26
.github/actions/demo/macos/action.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: macOS
|
||||
description: Build for macOS
|
||||
|
||||
inputs:
|
||||
GITHUB_TOKEN:
|
||||
required: true
|
||||
description: On macos runners we often hit API limits. Using this token avoid this.
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: extractions/setup-just@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just default-toolchain
|
||||
- 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
|
||||
- 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
|
||||
7
.github/workflows/on_main_push.yml
vendored
7
.github/workflows/on_main_push.yml
vendored
@ -68,4 +68,9 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/apple
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
build-demo-macos:
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/demo/macos
|
||||
5
.github/workflows/on_pull_request.yml
vendored
5
.github/workflows/on_pull_request.yml
vendored
@ -49,3 +49,8 @@ jobs:
|
||||
- uses: ./.github/actions/apple
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
build-demo-macos:
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/demo/macos
|
||||
Loading…
x
Reference in New Issue
Block a user