Use the latest version of gomobile instead of the fork of protonmail. Use go get gomobile in the build script instead of adding it to the go.mod by default. Fix the script to work with latest gomobile
45 lines
956 B
YAML
45 lines
956 B
YAML
name: Gomobile for iOS
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build library for iOS with gomobile
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- name: Set up xcode 14.2
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: 14.2
|
|
id: xcode
|
|
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.16
|
|
id: go
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
env:
|
|
platform: ${{ 'iOS Simulator' }}
|
|
run: |
|
|
for d in $ANDROID_NDK_HOME/../23*; do
|
|
ANDROID_NDK_HOME=$d
|
|
done
|
|
./build.sh apple
|
|
find dist
|
|
|
|
- name: Upload xcframework
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: gopenpgp.xcframework
|
|
path: dist/apple/gopenpgp.xcframework
|
|
if-no-files-found: error
|