-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add build apk CI step * Move the build apk step after the tests Because it takes a long time, it's better to run the tests first to fail fast. * Cache the sdk * Cache the gradle directory as well * Use newer version of cache action * Use absolute path * Be more explicit with what is being cached * Test not caching the licenses sdk directory * List licences before and after * Don't cache the android sdk tools * Move apk build into a separate workflow * Update action versions * Run the build_executables workflow on all pull requests * Build profile apks * Rename build_and_test workflow to test
- Loading branch information
Showing
5 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build Sweyer executables | ||
on: | ||
pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: π¦ Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: 3.7.12 | ||
channel: stable | ||
cache: true | ||
|
||
- name: π¦ Install Dependencies | ||
shell: bash | ||
run: | | ||
flutter pub global activate very_good_cli | ||
very_good --analytics false | ||
very_good packages get --recursive | ||
- name: πΎ Cache Gradle | ||
uses: actions/cache@v4 | ||
with: | ||
key: gradle | ||
path: /home/runner/.gradle | ||
|
||
- name: π¨ Build Apk | ||
shell: bash | ||
run: flutter build apk --profile | ||
|
||
- name: π Save executables | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Android Apk | ||
path: build/app/outputs/flutter-apk/app-profile.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.github/workflows/build_and_test/action.yml β .github/workflows/test/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters