Fix the build pipeline for iOS and Android

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
This commit is contained in:
M. Thiercelin 2023-03-03 15:27:37 +01:00
parent b4736c8cd3
commit 10f6e3fa07
No known key found for this signature in database
GPG key ID: 29581E7E24EBEC0A
4 changed files with 42 additions and 111 deletions

View file

@ -12,16 +12,16 @@ jobs:
runs-on: macos-latest
steps:
- name: Set up xcode 13.2
- name: Set up xcode 14.2
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 13.2
xcode-version: 14.2
id: xcode
- name: Set up Go 1.15.15
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.15.15
go-version: ^1.16
id: go
- name: Checkout
@ -37,37 +37,9 @@ jobs:
./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
name: gopenpgp.xcframework
path: dist/apple/gopenpgp.xcframework
if-no-files-found: error