From bff430332c3423fd520f90484d19dfc7c0b6d550 Mon Sep 17 00:00:00 2001 From: Zenoxs Date: Mon, 2 May 2022 15:03:57 +0200 Subject: [PATCH] add linux build for ci --- .github/workflows/build.yml | 26 ++++++++++++++++++++++---- pubspec.yaml | 2 +- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c568ae..d656201 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,8 +13,6 @@ env: jobs: build-macos: runs-on: macos-latest - env: - MACOS_APP_RELEASE_PATH: build/macos/Build/Products/Release steps: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 @@ -35,10 +33,30 @@ jobs: with: name: ac_companion-macos path: "dist/**/*.dmg" + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + flutter-version: ${{env.FLUTTER_VERSION}} + channel: 'stable' + cache: true + architecture: x64 + - run: flutter pub get + - run: flutter pub run build_runner build + - run: flutter config --enable-linux-desktop + - name: Install linux flutter sdk requirements + run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev + - name: Create deb + run: flutter pub run flutter_distributor:main package --platform linux --targets deb + - name: Upload Linux artifact + uses: actions/upload-artifact@v3 + with: + name: ac_companion-linux + path: "dist/**/*.deb" build-windows: runs-on: windows-latest - env: - WINDOWS_APP_RELEASE_PATH: build/windows/runner/Release steps: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 diff --git a/pubspec.yaml b/pubspec.yaml index b2b0681..7b72273 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0+1 +version: 1.0.1+1 environment: sdk: ">=2.16.2 <3.0.0"