Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

move ios ci to arm64 mac

rustdesk474e13f8b910
diff --git a/.github/workflows/build-macos-arm64.yml b/.github/workflows/build-macos-arm64.yml
index c8c984e1a..8142e6020 100644
--- a/.github/workflows/build-macos-arm64.yml
+++ b/.github/workflows/build-macos-arm64.yml
@@ -32,25 +32,39 @@ env:
SIGN_BASE_URL: "${{ secrets.SIGN_BASE_URL }}"
jobs:
- build-for-macOS-arm64:
- name: build-for-macOS-arm64
+ build-rustdesk-ios:
runs-on: [self-hosted, macOS, ARM64]
+ strategy:
+ fail-fast: false
steps:
- #- name: Import the codesign cert
- # if: env.MACOS_P12_BASE64 != null
- # uses: apple-actions/import-codesign-certs@v1
- # continue-on-error: true
- # with:
- # p12-file-base64: ${{ secrets.MACOS_P12_BASE64 }}
- # p12-password: ${{ secrets.MACOS_P12_PASSWORD }}
- # keychain: rustdesk
-
- #- name: Check sign and import sign key
- # if: env.MACOS_P12_BASE64 != null
- # run: |
- # security default-keychain -s rustdesk.keychain
- # security find-identity -v
-
- - name: Run
+ - name: Export GitHub Actions cache environment variables
+ uses: actions/github-script@v6
+ with:
+ script: |
+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
+
+ - name: Checkout source code
+ uses: actions/checkout@v3
+
+ # $VCPKG_ROOT/vcpkg install --triplet arm64-ios --x-install-root="$VCPKG_ROOT/installed"
+
+ - name: Install flutter rust bridge deps
+ shell: bash
+ run: |
+ cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid"
+ pushd flutter && flutter pub get && popd
+ ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/ios/Runner/bridge_generated.h
+
+ - name: Build rustdesk lib
+ run: |
+ rustup target add ${{ matrix.job.target }}
+ cargo build --features flutter,hwcodec --release --target aarch64-apple-ios --lib
+
+ - name: Build rustdesk
shell: bash
run: |
+ pushd flutter
+ # flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info --no-codesign
+ # for easy debugging
+ flutter build ipa --release --no-codesign
diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml
index 6d6e5b2b6..d95268548 100644
--- a/.github/workflows/flutter-build.yml
+++ b/.github/workflows/flutter-build.yml
@@ -390,6 +390,60 @@ jobs:
files: |
rustdesk*-aarch64.dmg
+ build-rustdesk-ios:
+ if: ${{ inputs.upload-artifact }}
+ runs-on: [self-hosted, macOS, ARM64]
+ strategy:
+ fail-fast: false
+ steps:
+ - name: Export GitHub Actions cache environment variables
+ uses: actions/github-script@v6
+ with:
+ script: |
+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
+
+ - name: Checkout source code
+ uses: actions/checkout@v3
+
+ # $VCPKG_ROOT/vcpkg install --triplet arm64-ios --x-install-root="$VCPKG_ROOT/installed"
+
+ - name: Install flutter rust bridge deps
+ shell: bash
+ run: |
+ cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid"
+ pushd flutter && flutter pub get && popd
+ ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/ios/Runner/bridge_generated.h
+
+ - name: Build rustdesk lib
+ run: |
+ rustup target add ${{ matrix.job.target }}
+ cargo build --features flutter,hwcodec --release --target aarch64-apple-ios --lib
+
+ - name: Build rustdesk
+ shell: bash
+ run: |
+ pushd flutter
+ # flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info --no-codesign
+ # for easy debugging
+ flutter build ipa --release --no-codesign
+
+ # - name: Upload Artifacts
+ # # if: env.ANDROID_SIGNING_KEY != null && env.UPLOAD_ARTIFACT == 'true'
+ # uses: actions/upload-artifact@master
+ # with:
+ # name: rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.apk
+ # path: flutter/build/ios/ipa/*.ipa
+
+ # - name: Publish ipa package
+ # # if: env.ANDROID_SIGNING_KEY != null && env.UPLOAD_ARTIFACT == 'true'
+ # uses: softprops/action-gh-release@v1
+ # with:
+ # prerelease: true
+ # tag_name: ${{ env.TAG_NAME }}
+ # files: |
+ # flutter/build/ios/ipa/*.ipa
+
build-for-macOS:
name: ${{ matrix.job.target }} (${{ matrix.job.os }}) [${{ matrix.job.extra-build-args }}]
runs-on: ${{ matrix.job.os }}
@@ -580,97 +634,6 @@ jobs:
generate-bridge-linux:
uses: ./.github/workflows/bridge.yml
- build-rustdesk-ios:
- if: ${{ inputs.upload-artifact }}
- name: build rustdesk ios ipa ${{ matrix.job.target }} (${{ matrix.job.os }}) [${{ matrix.job.extra-build-features }}]
- runs-on: ${{ matrix.job.os }}
- strategy:
- fail-fast: false
- matrix:
- job:
- - {
- arch: aarch64,
- target: aarch64-apple-ios,
- os: macos-latest,
- extra-build-features: "",
- }
- steps:
- - name: Export GitHub Actions cache environment variables
- uses: actions/github-script@v6
- with:
- script: |
- core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
- core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
-
- - name: Install dependencies
- run: |
- brew install nasm
- - name: Checkout source code
- uses: actions/checkout@v3
- - name: Install flutter
- uses: subosito/flutter-action@v2
- with:
- channel: "stable"
- flutter-version: ${{ env.FLUTTER_VERSION }}
-
- - name: Setup vcpkg with Github Actions binary cache
- uses: lukka/run-vcpkg@v11
- with:
- vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
-
- - name: Install vcpkg dependencies
- run: |
- $VCPKG_ROOT/vcpkg install --triplet arm64-ios --x-install-root="$VCPKG_ROOT/installed"
- shell: bash
-
- - name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@v1
- with:
- toolchain: ${{ env.RUST_VERSION }}
- targets: ${{ matrix.job.target }}
- components: "rustfmt"
-
- - uses: Swatinem/rust-cache@v2
- with:
- prefix-key: rustdesk-lib-cache-ios
- key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
-
- - name: Install flutter rust bridge deps
- shell: bash
- run: |
- cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid"
- pushd flutter && flutter pub get && popd
- ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/ios/Runner/bridge_generated.h
-
- - name: Build rustdesk lib
- run: |
- rustup target add ${{ matrix.job.target }}
- cargo build --features flutter,hwcodec --release --target aarch64-apple-ios --lib
-
- - name: Build rustdesk
- shell: bash
- run: |
- pushd flutter
- # flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info --no-codesign
- # for easy debugging
- flutter build ipa --release --no-codesign
-
- # - name: Upload Artifacts
- # # if: env.ANDROID_SIGNING_KEY != null && env.UPLOAD_ARTIFACT == 'true'
- # uses: actions/upload-artifact@master
- # with:
- # name: rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.apk
- # path: flutter/build/ios/ipa/*.ipa
-
- # - name: Publish ipa package
- # # if: env.ANDROID_SIGNING_KEY != null && env.UPLOAD_ARTIFACT == 'true'
- # uses: softprops/action-gh-release@v1
- # with:
- # prerelease: true
- # tag_name: ${{ env.TAG_NAME }}
- # files: |
- # flutter/build/ios/ipa/*.ipa
-
build-rustdesk-android:
needs: [generate-bridge-linux]
name: build rustdesk android apk ${{ matrix.job.target }} (${{ matrix.job.os }}) [${{ matrix.job.extra-build-features }}]
diff --git a/flutter/ios/Podfile.lock b/flutter/ios/Podfile.lock
index a7380de27..6cb5c9cff 100644
--- a/flutter/ios/Podfile.lock
+++ b/flutter/ios/Podfile.lock
@@ -139,4 +139,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: d4cb12ad5d3bdb3352770b1d3db237584e155156
-COCOAPODS: 1.12.1
+COCOAPODS: 1.15.2
diff --git a/flutter/ios/Runner.xcodeproj/project.pbxproj b/flutter/ios/Runner.xcodeproj/project.pbxproj
index 630b11758..acc2a09e7 100644
--- a/flutter/ios/Runner.xcodeproj/project.pbxproj
+++ b/flutter/ios/Runner.xcodeproj/project.pbxproj
@@ -159,7 +159,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 1430;
+ LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
diff --git a/flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index a6b826db2..5e31d3d34 100644
--- a/flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
- LastUpgradeVersion = "1430"
+ LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"