Upgrade gradle one more time #1062
Workflow file for this run
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
name: Build APP | |
# manual and on push | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
outputs: | |
found: ${{ steps.PR.outputs.pr_found }} | |
steps: | |
- uses: 8BitJonny/[email protected] | |
id: PR | |
build-android: | |
needs: check | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./chameleonultragui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter pub get | |
- run: flutter build apk --build-number ${{ github.run_number }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: apk | |
path: chameleonultragui/build/app/outputs/flutter-apk/app-release.apk | |
build-windows: | |
needs: check | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: ./chameleonultragui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter config --enable-windows-desktop | |
- run: flutter build windows --build-number ${{ github.run_number }} | |
- run: flutter test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows | |
path: chameleonultragui/build/windows/x64/runner/Release/ | |
- name: Create NSIS installer | |
uses: joncloud/makensis-action@v4 | |
with: | |
script-file: nsis-installer.nsi | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows-installer | |
path: chameleonultragui-setup-win.exe | |
build-linux: | |
needs: check | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./chameleonultragui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: sudo apt-get update -y && sudo apt-get install -y ninja-build libgtk-3-dev clang | |
- run: flutter config --enable-linux-desktop | |
- run: flutter build linux --build-number ${{ github.run_number }} | |
- run: flutter test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux | |
path: chameleonultragui/build/linux/x64/release | |
- run: dart pub global activate flutter_to_debian | |
- run: flutter_to_debian | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux-debian | |
path: chameleonultragui/build/linux/x64/release/debian | |
build-linux-legacy: | |
needs: check | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: ./chameleonultragui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: sudo apt-get update -y && sudo apt-get install -y ninja-build libgtk-3-dev clang | |
- run: flutter config --enable-linux-desktop | |
- run: flutter build linux --build-number ${{ github.run_number }} | |
- run: flutter test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux-legacy | |
path: chameleonultragui/build/linux/x64/release | |
build-macos: | |
needs: check | |
runs-on: macos-13 | |
defaults: | |
run: | |
working-directory: ./chameleonultragui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Enable macOS | |
run: flutter config --enable-macos-desktop | |
- name: Install tools | |
run: brew install automake libtool create-dmg | |
- run: flutter build macos --release |