Skip to content

Commit

Permalink
add linux build for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zenoxs committed May 2, 2022
1 parent a65b737 commit bff4303
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bff4303

Please sign in to comment.