mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Update caches
This commit is contained in:
parent
e6c212585e
commit
1e7c15f941
2
.github/actions/rust-cache/action.yml
vendored
2
.github/actions/rust-cache/action.yml
vendored
@ -12,4 +12,4 @@ runs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
~/.cargo/.crates*
|
||||
key: ${{ runner.os }}-cargo
|
||||
key: 1-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
48
.github/workflows/apple.yml
vendored
48
.github/workflows/apple.yml
vendored
@ -8,8 +8,8 @@ on:
|
||||
- cron: '0 17 * * 1'
|
||||
|
||||
jobs:
|
||||
build-macos:
|
||||
runs-on: macOS-11
|
||||
build:
|
||||
runs-on: macOS-12
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@ -17,42 +17,8 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Cargo Build
|
||||
run: cargo build --target aarch64-apple-darwin --lib
|
||||
- name: XCode Build
|
||||
run: cd apple/mapr && xcodebuild -scheme "mapr (macOS)" -arch arm64 build
|
||||
|
||||
build-iphoneos:
|
||||
runs-on: macOS-11
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Cargo Build
|
||||
run: cargo build --target aarch64-apple-ios --lib # First running `cargo build` before `xcodebuild` is REQUIRED!
|
||||
# Else the rust compilation fails during linking. This is
|
||||
# probably due to some weird environment variables set during
|
||||
# xcodebuild execution
|
||||
- name: XCode Build
|
||||
run: cd apple/mapr && xcodebuild -scheme "mapr (iOS)" -arch arm64 -sdk iphoneos build CODE_SIGNING_ALLOWED=NO
|
||||
- uses: ./.github/actions/rust-cache
|
||||
- name: Build xcframework
|
||||
run: just xcodebuild-xcframework
|
||||
- name: Build Example
|
||||
run: cd apple/xcode && xcodebuild -scheme "example (iOS)" -arch arm64 -sdk iphoneos build CODE_SIGNING_ALLOWED=NO
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user