-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (73 loc) · 2.29 KB
/
grpc_cronet.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: package:grpc_cronet CI
on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 0 * * 0"
env:
PUB_ENVIRONMENT: bot.github
jobs:
analyze:
name: Lint and static analysis
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
channel: 'stable'
flutter-version: '3.0.2'
- id: install
name: Install dependencies
run: flutter pub get
- name: Check formatting
run: flutter format --output=none --set-exit-if-changed .
if: steps.install.outcome == 'success'
- name: Download route_guide dependencies
run: flutter pub get
working-directory: example/route_guide
if: steps.install.outcome == 'success'
- name: Analyze code
run: flutter analyze --fatal-infos
if: steps.install.outcome == 'success'
build-example-linux:
name: "Build example on linux"
runs-on: ubuntu-latest
defaults:
run:
working-directory: example/helloworld
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
channel: 'stable'
flutter-version: '3.0.2'
- name: Download dependencies
run: flutter pub get
- name: apt-get update
run: sudo apt-get update
- name: Install required packages
run: sudo apt-get install ninja-build gtk+-3.0 glib-2.0 gio-2.0
- name: Build executable
run: flutter build linux
build-example-windows:
name: "Build example on Windows"
runs-on: windows-latest
defaults:
run:
working-directory: example/helloworld
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
channel: 'stable'
flutter-version: '3.0.2'
- name: Download dependencies
run: flutter pub get
- name: Build executable
run: flutter build windows