Update dependency macos to v26 #1673
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-android: | |
| name: Build for Android | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Ninja | |
| run: sudo apt-get install -y ninja-build | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: flutter pub get | |
| - name: Patch dartjni | |
| run: | | |
| JNI_CMAKE=$(find $HOME/.pub-cache/hosted/pub.dev -path "*/jni-*/src/CMakeLists.txt" | head -n 1) | |
| if [ -n "$JNI_CMAKE" ] && [ -f "$JNI_CMAKE" ]; then | |
| sed -i '2i add_link_options("LINKER:--build-id=none")' "$JNI_CMAKE" | |
| echo "Patched CMakeLists.txt in $JNI_CMAKE" | |
| else | |
| echo "Error: jni CMakeLists.txt not found in expected location." | |
| exit 1 | |
| fi | |
| - run: flutter build apk --debug | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: android-debug-apk | |
| path: build/app/outputs/apk/debug/app-debug.apk | |
| build-ios: | |
| name: Build for iOS | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| architecture: x64 | |
| - run: flutter pub get | |
| - run: flutter build ios --debug --no-codesign | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: ios-debug-app | |
| path: build/ios/iphoneos/*.app | |
| build-macos: | |
| name: Build for macOS | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: flutter pub get | |
| - name: Disable macOS code signing | |
| run: | | |
| echo "CODE_SIGNING_ALLOWED=NO" >> macos/Runner/Configs/Debug.xcconfig | |
| echo "CODE_SIGNING_REQUIRED=NO" >> macos/Runner/Configs/Debug.xcconfig | |
| echo "CODE_SIGN_IDENTITY=" >> macos/Runner/Configs/Debug.xcconfig | |
| - run: flutter build macos --debug | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: macos-debug-app | |
| path: build/macos/Build/Products/Debug/*.app | |
| build-windows: | |
| name: Build for Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: flutter pub get | |
| - run: flutter build windows --debug | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: windows-debug | |
| path: build/windows/x64/runner/Debug/ | |