Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jing332 committed Aug 10, 2024
1 parent a69b536 commit 92ac322
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
chmod +x *.sh
./init_gomobile.sh
./gobind.sh
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

Expand All @@ -76,7 +75,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.22'
flutter-version: '3.19.6'
- run: flutter build apk --split-per-abi --release

- name: Upload missing_rules.txt
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
distribution: temurin
java-version: 17

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r25c

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

Expand All @@ -44,6 +49,8 @@ jobs:
chmod +x *.sh
./init_gomobile.sh
./gobind.sh
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Upload AAR
uses: actions/upload-artifact@v3
Expand All @@ -64,7 +71,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.7'
flutter-version: '3.19.6'
- run: flutter build apk --split-per-abi --release

- name: Upload missing_rules.txt
Expand All @@ -77,7 +84,7 @@ jobs:
- name: Init APP Version Name
run: |
echo "ver_name=$(grep -m 1 'versionName' ${{ env.output }}/output-metadata.json | cut -d\" -f4)" >> $GITHUB_ENV
- uses: softprops/action-gh-release@v1
with:
name: ${{ env.ver_name }}
Expand Down

0 comments on commit 92ac322

Please sign in to comment.