Skip to content

Commit

Permalink
Update dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY authored Oct 28, 2023
1 parent 857b5a9 commit d51f267
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
build_android:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: recursive

# Note: This workflow uses the latest stable version of the Dart SDK.
# You can specify other versions if desired, see documentation here:
Expand All @@ -25,21 +29,19 @@ jobs:
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
run: dart pub get

# Uncomment this step to verify the use of 'dart format' on each commit.
# - name: Verify formatting
# run: dart format --output=none --set-exit-if-changed .

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze

# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: flutter test
run: flutter pub get

- name: Building
run: flutter build apk --target-platform android-arm,android-arm64 --split-per-abi

- name: Upload APKs
run: |
mkdir -p artifacts
mv build/app/outputs/flutter-apk/*.apk artifacts/
shell: bash

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: app-releases
path: artifacts/

0 comments on commit d51f267

Please sign in to comment.