Skip to content

Commit

Permalink
Fix PR builds (#443)
Browse files Browse the repository at this point in the history
* Set up correct java version

* Fix PR bot not clearing label on failure
  • Loading branch information
derdilla authored Sep 20, 2024
1 parent 256c7cf commit ce55d98
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/app-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Disable analytics
run: flutter config --no-analytics
run: flutter config --no-analytics --suppress-analytics
- name: Generate mock code
run: |
flutter pub get
Expand Down Expand Up @@ -179,7 +179,13 @@ jobs:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Disable analytics
run: flutter config --no-analytics
run: flutter config --no-analytics --suppress-analytics
- name: Setup java
uses: actions/setup-java@v2
with:
java-version: "17"
distribution: "temurin"
cache: 'gradle'
- name: Build apk
run: flutter build apk --flavor github --debug
working-directory: app
9 changes: 8 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ jobs:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Disable analytics
run: flutter config --no-analytics
run: flutter config --no-analytics --suppress-analytics
- name: Setup java
uses: actions/setup-java@v2
with:
java-version: "17"
distribution: "temurin"
cache: 'gradle'
- name: Build apk
run: flutter build apk --flavor github --debug
working-directory: app
Expand All @@ -53,6 +59,7 @@ jobs:
name: build-results
path: app/build/app/outputs/flutter-apk
- uses: mondeja/remove-labels-gh-action@v2
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: build-apk

0 comments on commit ce55d98

Please sign in to comment.