Skip to content

Commit

Permalink
update cd
Browse files Browse the repository at this point in the history
  • Loading branch information
derdilla committed Jun 8, 2024
1 parent ae34add commit 42db4e0
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Get dependencies
run: flutter pub get
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- name: Build linux
run: flutter build linux --release
- name: compress bundle
Expand All @@ -41,17 +43,30 @@ jobs:
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
- name: Get dependencies
run: flutter pub get
- name: Build combined APK
run: flutter build apk --release
- name: Build split APKs
run: flutter build apk --release --split-per-abi
- uses: actions/upload-artifact@v4
with:
name: android
name: android-bundle
path: |
build/app/outputs/flutter-apk/*.apk
build/app/outputs/flutter-apk/app-release.apk
- uses: actions/upload-artifact@v4
with:
name: android-x86_64
path: |
build/app/outputs/flutter-apk/app-x86_64-release.apk
- uses: actions/upload-artifact@v4
with:
name: android-armeabi-v7a
path: |
build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
- uses: actions/upload-artifact@v4
with:
name: android-arm64-v8a
path: |
build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
windows:
runs-on: windows-latest
steps:
Expand All @@ -60,12 +75,23 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Get dependencies
run: flutter pub get
- name: Build windows
run: flutter build windows --release
- uses: actions/upload-artifact@v4
with:
name: windows
path: build/windows/x64/
path: build/windows/x64/
macos:
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter build macos
- uses: actions/upload-artifact@v4
with:
name: macos
path: build/macos

0 comments on commit 42db4e0

Please sign in to comment.