Skip to content

Commit

Permalink
Add iOS build test (netbirdio#1412)
Browse files Browse the repository at this point in the history
* merge validate workflows into mobile



---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
  • Loading branch information
pappz and mlsmaycon committed Jan 18, 2024
1 parent c020975 commit a410142
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android build validation
name: Mobile build validation

on:
push:
Expand All @@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
andrloid_build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -46,3 +46,20 @@ jobs:
env:
CGO_ENABLED: 0
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/23.1.7779620
ios_build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21.x"
- name: install gomobile
run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20230531173138-3c911d8e3eda
- name: gomobile init
run: gomobile init
- name: build iOS nebtird lib
run: PATH=$PATH:$(go env GOPATH) gomobile bind -target=ios -bundleid=io.netbird.framework -ldflags="-X github.com/netbirdio/netbird/version.version=buildtest" -o $GITHUB_WORKSPACE/NetBirdSDK.xcframework $GITHUB_WORKSPACE/client/ios/NetBirdSDK
env:
CGO_ENABLED: 0

0 comments on commit a410142

Please sign in to comment.