73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
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 13.2
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: 13.2
|
|
id: xcode
|
|
|
|
- name: Set up Go 1.15.15
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.15.15
|
|
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 iOS artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: iOS build
|
|
path: dist/ios
|
|
if-no-files-found: error
|
|
|
|
- name: Upload mac OS artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mac OS build
|
|
path: dist/macos
|
|
if-no-files-found: error
|
|
|
|
- name: Upload mac OS ui artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mac OS ui build
|
|
path: dist/macos-ui
|
|
if-no-files-found: error
|
|
|
|
- name: Upload iOS simulator artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: iOS simulator build
|
|
path: dist/ios-simulator
|
|
if-no-files-found: error
|
|
|
|
- name: Upload xcframework
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Gopenpgp xcframework
|
|
path: dist/Gopenpgp.xcframework
|
|
if-no-files-found: error
|