diff --git a/.github/workflows/android-build-validation.yml b/.github/workflows/mobile-build-validation.yml similarity index 67% rename from .github/workflows/android-build-validation.yml rename to .github/workflows/mobile-build-validation.yml index 119e0b494..8cb0eed74 100644 --- a/.github/workflows/android-build-validation.yml +++ b/.github/workflows/mobile-build-validation.yml @@ -1,4 +1,4 @@ -name: Android build validation +name: Mobile build validation on: push: @@ -11,7 +11,7 @@ concurrency: cancel-in-progress: true jobs: - build: + andrloid_build: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -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 \ No newline at end of file