2024-03-17 11:20:25 +08:00
|
|
|
name: Flutter Nightly MacOS Arm64 Build
|
|
|
|
|
2024-03-17 11:17:23 +08:00
|
|
|
on:
|
2024-03-30 18:27:23 +08:00
|
|
|
#schedule:
|
2024-03-30 16:55:28 +08:00
|
|
|
# schedule build every night
|
2024-03-30 18:27:23 +08:00
|
|
|
# - cron: "0/6 * * * *"
|
2024-03-17 11:20:25 +08:00
|
|
|
workflow_dispatch:
|
2024-03-17 11:17:23 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_NDK_VERSION: "3.1.2"
|
|
|
|
LLVM_VERSION: "15.0.6"
|
|
|
|
FLUTTER_VERSION: "3.16.9"
|
|
|
|
FLUTTER_RUST_BRIDGE_VERSION: "1.80.1"
|
|
|
|
# for arm64 linux because official Dart SDK does not work
|
|
|
|
FLUTTER_ELINUX_VERSION: "3.16.9"
|
|
|
|
FLUTTER_ELINUX_COMMIT_ID: "c02bd16e1630f5bd690b85c5c2456ac1920e25af"
|
2024-03-17 11:20:25 +08:00
|
|
|
TAG_NAME: "nightly"
|
2024-03-17 11:17:23 +08:00
|
|
|
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
|
|
|
# vcpkg version: 2023.10.19
|
|
|
|
# for multiarch gcc compatibility
|
|
|
|
VCPKG_COMMIT_ID: "8eb57355a4ffb410a2e94c07b4dca2dffbee8e50"
|
|
|
|
VERSION: "1.2.4"
|
|
|
|
NDK_VERSION: "r26b"
|
|
|
|
#signing keys env variable checks
|
|
|
|
ANDROID_SIGNING_KEY: '${{ secrets.ANDROID_SIGNING_KEY }}'
|
|
|
|
MACOS_P12_BASE64: '${{ secrets.MACOS_P12_BASE64 }}'
|
|
|
|
# To make a custom build with your own servers set the below secret values
|
|
|
|
RS_PUB_KEY: '${{ secrets.RS_PUB_KEY }}'
|
|
|
|
RENDEZVOUS_SERVER: '${{ secrets.RENDEZVOUS_SERVER }}'
|
|
|
|
API_SERVER: '${{ secrets.API_SERVER }}'
|
2024-03-17 11:28:12 +08:00
|
|
|
UPLOAD_ARTIFACT: true
|
2024-03-17 11:17:23 +08:00
|
|
|
SIGN_BASE_URL: "${{ secrets.SIGN_BASE_URL }}"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-for-macOS-arm64:
|
|
|
|
name: build-for-macOS-arm64
|
|
|
|
runs-on: [self-hosted, macOS, ARM64]
|
|
|
|
steps:
|
2024-03-30 17:19:03 +08:00
|
|
|
#- 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
|
2024-03-30 17:07:34 +08:00
|
|
|
|
2024-03-30 17:19:03 +08:00
|
|
|
#- name: Check sign and import sign key
|
|
|
|
# if: env.MACOS_P12_BASE64 != null
|
|
|
|
# run: |
|
|
|
|
# security default-keychain -s rustdesk.keychain
|
|
|
|
# security find-identity -v
|
2024-03-30 17:07:34 +08:00
|
|
|
|
2024-03-30 16:55:28 +08:00
|
|
|
- name: Run
|
2024-03-17 11:17:23 +08:00
|
|
|
shell: bash
|
|
|
|
run: |
|