Skip to content

Commit 308f434

Browse files
committed
Add flutter master channel build
1 parent 2a27968 commit 308f434

File tree

1 file changed

+69
-3
lines changed

1 file changed

+69
-3
lines changed

.github/workflows/dart.yaml

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- uses: subosito/flutter-action@v2
1616
with:
1717
channel: stable
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: windows-latest
4545

4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v3
4848
- uses: subosito/flutter-action@v2
4949
with:
5050
channel: stable
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: macos-12
6060

6161
steps:
62-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v3
6363
- uses: subosito/flutter-action@v2
6464
with:
6565
channel: stable
@@ -72,3 +72,69 @@ jobs:
7272
run: cd printing/example; flutter build -v macos
7373
# - name: Build example for iOS
7474
# run: cd printing/example; flutter build -v ios
75+
76+
linux-dev:
77+
runs-on: ubuntu-latest
78+
79+
steps:
80+
- uses: actions/checkout@v3
81+
- uses: subosito/flutter-action@v2
82+
with:
83+
channel: master
84+
- name: Enable Linux for flutter
85+
run: flutter config --enable-linux-desktop
86+
- name: Update repo
87+
run: sudo apt update
88+
- name: Install utils
89+
run: sudo apt install poppler-utils imagemagick clang cmake ninja-build pkg-config libgtk-3-dev
90+
- name: Run analysis
91+
run: make analyze
92+
- name: Run tests
93+
run: make test
94+
- name: Run readme tests
95+
run: make test-readme
96+
- name: Verify that nothing changed
97+
run: test -z "$(git status --porcelain)"
98+
- name: Push to codecov
99+
run: bash <(curl -s https://codecov.io/bash)
100+
- name: Prepare build
101+
run: cd printing/example; flutter create -t app --no-overwrite --org net.nfet --project-name example .
102+
- name: Build example for Linux
103+
run: cd printing/example; flutter build -v linux
104+
- name: Build example for Android
105+
run: cd printing/example; flutter build -v apk
106+
- name: Build demo for Web
107+
run: cd demo; flutter build -v web
108+
109+
windows-dev:
110+
runs-on: windows-latest
111+
112+
steps:
113+
- uses: actions/checkout@v3
114+
- uses: subosito/flutter-action@v2
115+
with:
116+
channel: master
117+
- name: Enable Windows for flutter
118+
run: flutter config --enable-windows-desktop
119+
- name: Prepare build
120+
run: cd printing/example; flutter create -t app --no-overwrite --org net.nfet --project-name example .
121+
- name: Build example for Windows
122+
run: cd printing/example; flutter build -v windows
123+
124+
macos-dev:
125+
runs-on: macos-12
126+
127+
steps:
128+
- uses: actions/checkout@v3
129+
- uses: subosito/flutter-action@v2
130+
with:
131+
channel: master
132+
architecture: x64
133+
- name: Enable macOS for flutter
134+
run: flutter config --enable-macos-desktop
135+
- name: Prepare build
136+
run: cd printing/example; flutter create -t app --no-overwrite --org net.nfet --project-name example .
137+
- name: Build example for macOS
138+
run: cd printing/example; flutter build -v macos
139+
# - name: Build example for iOS
140+
# run: cd printing/example; flutter build -v ios

0 commit comments

Comments
 (0)