Update caches

This commit is contained in:
Maximilian Ammann 2022-04-22 21:55:32 +02:00
parent e6c212585e
commit 1e7c15f941
2 changed files with 8 additions and 42 deletions

View File

@ -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') }}

View File

@ -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