-
-
Notifications
You must be signed in to change notification settings - Fork 205
45 lines (43 loc) · 1.33 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: build
on:
push:
branches: [main]
pull_request:
types: [opened, reopened]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.2
- 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
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- 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
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- 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