Skip to content

Commit d0993bb

Browse files
committed
wip: Update build & test workflows
1 parent 547dfbf commit d0993bb

File tree

2 files changed

+84
-22
lines changed

2 files changed

+84
-22
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,63 @@ name: build
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, dev]
66
pull_request:
7-
types: [opened, reopened]
7+
branches: [main]
88

99
jobs:
1010
build-linux:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- uses: subosito/flutter-action@v2
1515
with:
16-
channel: stable
17-
flutter-version: 3.22.2
16+
flutter-version: "3.24.3"
17+
channel: "stable"
1818
- run: |
19-
sudo apt-get update -y
20-
sudo apt-get install -y ninja-build libgtk-3-dev libappindicator3-dev xvfb
21-
- run: flutter config --enable-linux-desktop
22-
- run: cd example && flutter build linux -v
23-
- run: cd example && xvfb-run -a flutter test integration_test -v
19+
sudo apt-get update
20+
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
21+
sudo apt-get install -y keybinder-3.0
22+
- uses: bluefireteam/melos-action@v3
23+
- working-directory: ./packages/window_manager/example
24+
run: |
25+
flutter build linux --release
26+
2427
build-macos:
2528
runs-on: macos-latest
2629
steps:
27-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
2831
- uses: subosito/flutter-action@v2
2932
with:
30-
channel: stable
31-
flutter-version: 3.22.2
32-
- run: flutter config --enable-macos-desktop
33-
- run: cd example && flutter build macos -v
34-
# Blocked by https://github.com/flutter/flutter/issues/118469
35-
# - run: cd example && flutter test integration_test -v
33+
flutter-version: "3.24.3"
34+
channel: "stable"
35+
- uses: bluefireteam/melos-action@v3
36+
- working-directory: ./packages/window_manager/example
37+
run: |
38+
flutter build macos --release
39+
40+
build-web:
41+
runs-on: macos-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
- uses: subosito/flutter-action@v2
45+
with:
46+
flutter-version: "3.24.3"
47+
channel: "stable"
48+
- uses: bluefireteam/melos-action@v3
49+
- working-directory: ./packages/window_manager/example
50+
run: |
51+
flutter build web --release
52+
3653
build-windows:
3754
runs-on: windows-latest
3855
steps:
39-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
4057
- uses: subosito/flutter-action@v2
4158
with:
42-
channel: stable
43-
flutter-version: 3.22.2
44-
- run: cd example && flutter build windows -v
45-
- run: cd example && flutter test integration_test -v
59+
flutter-version: "3.24.3"
60+
channel: "stable"
61+
- uses: bluefireteam/melos-action@v3
62+
- working-directory: ./packages/window_manager/example
63+
run: |
64+
flutter build windows --release

.github/workflows/test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
types: [opened, reopened]
8+
9+
jobs:
10+
integration_test-linux:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
channel: stable
17+
flutter-version: "3.24.3"
18+
- run: |
19+
sudo apt-get update -y
20+
sudo apt-get install -y ninja-build libgtk-3-dev libappindicator3-dev xvfb
21+
- working-directory: ./packages/window_manager/example
22+
run: xvfb-run -a flutter test integration_test -v
23+
integration_test-macos:
24+
runs-on: macos-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: subosito/flutter-action@v2
28+
with:
29+
channel: stable
30+
flutter-version: "3.24.3"
31+
# Blocked by https://github.com/flutter/flutter/issues/118469
32+
# - working-directory: ./packages/window_manager/example
33+
# run: flutter test integration_test -v
34+
integration_test-windows:
35+
runs-on: windows-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- uses: subosito/flutter-action@v2
39+
with:
40+
channel: stable
41+
flutter-version: "3.24.3"
42+
- working-directory: ./packages/window_manager/example
43+
run: flutter test integration_test -v

0 commit comments

Comments
 (0)