Build burrow library into iOS and macOS app

This commit adds a build script, build-rust.sh, which compiles the
burrow crate from inside of Xcode. The network extension then links
against this crate.
This commit is contained in:
Conrad Kramer 2023-04-29 15:19:46 -04:00
parent d966c0ff77
commit 4b0965b846
7 changed files with 129 additions and 4 deletions

View file

@ -18,14 +18,22 @@ jobs:
destination: generic/platform=iOS
platform: iOS
sdk-name: iphoneos
rust-targets:
- aarch64-apple-ios
- scheme: Burrow
destination: platform=iOS Simulator,OS=16.2,name=iPhone 14 Pro
platform: iOS Simulator
sdk-name: iphonesimulator
rust-targets:
- aarch64-apple-ios-sim
- x86_64-apple-ios
- scheme: Burrow
destination: platform=macOS
platform: macOS
sdk-name: macos
rust-targets:
- x86_64-apple-darwin
- aarch64-apple-darwin
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
@ -39,6 +47,11 @@ jobs:
with:
certificate: ${{ secrets.DEVELOPER_CERT }}
password: ${{ secrets.DEVELOPER_CERT_PASSWORD }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ join(matrix.rust-targets, ', ') }}
- name: Build
id: build
uses: ./.github/actions/build-for-testing

View file

@ -50,7 +50,7 @@ jobs:
shell: bash
run: sudo apt-get install -y ${{ join(matrix.packages, ' ') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt