Skip to content

Build sdk-bindings for iOS #1

Build sdk-bindings for iOS

Build sdk-bindings for iOS #1

name: Build sdk-bindings for iOS
on:
workflow_dispatch:
inputs:
ref:
description: 'commit/tag/branch reference'
required: true
type: string
workflow_call:
inputs:
ref:
description: 'commit/tag/branch reference'
required: true
type: string
jobs:
build:
runs-on: macOS-latest
name: build ${{ matrix.target }}
strategy:
matrix:
target: [
aarch64-apple-ios,
x86_64-apple-ios,
aarch64-apple-ios-sim,
]
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Install rust toolchain
run: |
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
rustup target add ${{ matrix.target }}
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "23.4"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: libs
- name: Install xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build sdk-bindings
working-directory: libs/sdk-bindings
run: cargo build --release --target ${{ matrix.target }}
- name: Archive release
uses: actions/upload-artifact@v3
with:
name: sdk-bindings-${{ matrix.target }}
path: libs/target/${{ matrix.target }}/release/libbreez_sdk_bindings.a