Skip to content

Commit

Permalink
Merge pull request #141 from osociety/rename-job
Browse files Browse the repository at this point in the history
Run conditionally android and linux build check
  • Loading branch information
git-elliot authored Mar 24, 2024
2 parents eb74db4 + 5efb1dc commit ab1b907
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ jobs:
- 'android/**'
test:
- 'test/**'
android-build:
name: 'Flutter Test'
linux:
- 'linux/**'
macos:
- 'macos/**'
android-linux-build:
name: 'Flutter Android and Linux Build'
needs: changes
if: ${{ needs.changes.outputs.lib == 'true' || needs.changes.outputs.android == 'true' || needs.changes.outputs.test == 'true'}}
if: ${{ needs.changes.outputs.lib == 'true' || needs.changes.outputs.test == 'true' || needs.changes.outputs.android == 'true' || needs.changes.outputs.linux == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -83,6 +88,10 @@ jobs:
run: flutter analyze
- name: Run tests
run: flutter test
- name: Build dev debug flavor
- name: Build Android
if: ${{ needs.changes.outputs.lib == 'true' || needs.changes.outputs.test == 'true' || needs.changes.outputs.android == 'true'}}
run: |
flutter build apk --debug --flavor dev
flutter build apk --debug --flavor dev
- name: Build Linux
if: ${{ needs.changes.outputs.lib == 'true' || needs.changes.outputs.test == 'true' || needs.changes.outputs.linux == 'true'}}
run: flutter build linux --release

0 comments on commit ab1b907

Please sign in to comment.