Skip to content

Commit

Permalink
wip: Update build & test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Oct 27, 2024
1 parent 547dfbf commit d0993bb
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 22 deletions.
63 changes: 41 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,63 @@ name: build

on:
push:
branches: [main]
branches: [main, dev]
pull_request:
types: [opened, reopened]
branches: [main]

jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.2
flutter-version: "3.24.3"
channel: "stable"
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libappindicator3-dev xvfb
- run: flutter config --enable-linux-desktop
- run: cd example && flutter build linux -v
- run: cd example && xvfb-run -a flutter test integration_test -v
sudo apt-get update
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
sudo apt-get install -y keybinder-3.0
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/window_manager/example
run: |
flutter build linux --release
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.2
- run: flutter config --enable-macos-desktop
- run: cd example && flutter build macos -v
# Blocked by https://github.com/flutter/flutter/issues/118469
# - run: cd example && flutter test integration_test -v
flutter-version: "3.24.3"
channel: "stable"
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/window_manager/example
run: |
flutter build macos --release
build-web:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.3"
channel: "stable"
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/window_manager/example
run: |
flutter build web --release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.2
- run: cd example && flutter build windows -v
- run: cd example && flutter test integration_test -v
flutter-version: "3.24.3"
channel: "stable"
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/window_manager/example
run: |
flutter build windows --release
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build

on:
push:
branches: [main, dev]
pull_request:
types: [opened, reopened]

jobs:
integration_test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: "3.24.3"
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libappindicator3-dev xvfb
- working-directory: ./packages/window_manager/example
run: xvfb-run -a flutter test integration_test -v
integration_test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: "3.24.3"
# Blocked by https://github.com/flutter/flutter/issues/118469
# - working-directory: ./packages/window_manager/example
# run: flutter test integration_test -v
integration_test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: "3.24.3"
- working-directory: ./packages/window_manager/example
run: flutter test integration_test -v

0 comments on commit d0993bb

Please sign in to comment.