From 8b0fda3239dd2e8ee9541e720fc4d2d080db633f Mon Sep 17 00:00:00 2001 From: ethicnology Date: Tue, 17 Dec 2024 08:47:04 -0500 Subject: [PATCH] fix: repair build CI --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82b79ee8..124db4fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,23 +1,36 @@ name: Build on: - push: + pull_request: branches: - main +env: + APP_NAME: BULL jobs: - build: - name: Build APK - runs-on: ubuntu-latest - + ios: + runs-on: macos-latest steps: - - name: Checkout Repository - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - run: rustup target add aarch64-apple-ios - - name: Setup Flutter - uses: subosito/flutter-action@v2 + - uses: subosito/flutter-action@v2 with: - flutter-version: '2.5.3' + channel: stable + flutter-version: 3.24.5 + architecture: x64 - - name: Build APK - run: flutter build apk --release + - run: flutter pub get + - run: dart run build_runner build --delete-conflicting-outputs + + - name: Build no-codesign release + run: flutter build ios --release --no-codesign + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ env.APP_NAME }}_ios + path: build/ios/iphoneos/Runner.app