Skip to content

Commit

Permalink
Merge pull request #360 from SatoshiPortal/build-ci
Browse files Browse the repository at this point in the history
fix: repair build CI
  • Loading branch information
ethicnology authored Dec 17, 2024
2 parents 2095839 + 8b0fda3 commit 1869096
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1869096

Please sign in to comment.