feat(mobile): переименование ios -> mobile, универсальный движок для iOS/Android

This commit is contained in:
samosvalishe committed 2026-06-25 02:44:31 +03:00
1 parent fb998547eb
commit 575f278a9a
21 files changed
+812 -500

No files matched your search

+68
View File
@@ -16,6 +16,7 @@ env:
GOLANGCI_VERSION: v2.12.2
GOVULN_VERSION: v1.1.4
GORELEASER_VERSION: v2.15.4
GOMOBILE_VERSION: latest
TASK_VERSION: 3.51.1
jobs:
@@ -106,3 +107,70 @@ jobs:
name: snapshot-dist
path: dist/
retention-days: 7
build-ios:
name: Build iOS XCFramework
runs-on: macos-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-go@v6.4.0
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- uses: arduino/setup-task@v2.0.0
with:
version: ${{ env.TASK_VERSION }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install gomobile
run: |
go install golang.org/x/mobile/cmd/gomobile@${{ env.GOMOBILE_VERSION }}
gomobile init
- name: Build XCFramework
run: task build:ios
- uses: actions/upload-artifact@v7.0.1
with:
name: ios-xcframework
path: dist/Mobile.xcframework
retention-days: 7
build-android:
name: Build Android AAR
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-go@v6.4.0
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- uses: arduino/setup-task@v2.0.0
with:
version: ${{ env.TASK_VERSION }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Android NDK
run: |
NDK_DIR=$(ls -d $ANDROID_SDK_ROOT/ndk/*/ 2>/dev/null | sort -V | tail -n1)
echo "ANDROID_NDK_HOME=${NDK_DIR%/}" >> $GITHUB_ENV
- name: Install gomobile
run: |
go install golang.org/x/mobile/cmd/gomobile@${{ env.GOMOBILE_VERSION }}
gomobile init
- name: Build AAR
run: task build:android
- uses: actions/upload-artifact@v7.0.1
with:
name: android-aar
path: dist/mobile.aar
retention-days: 7