-
-
Notifications
You must be signed in to change notification settings - Fork 466
68 lines (64 loc) · 1.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Fluent UI for Flutter Client
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build_windows:
name: Windows Client
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- run: git config --system core.longpaths true
- name: Flutter Pub Get
run: flutter pub get
working-directory: ./example
- name: Build for Windows
run: flutter build windows --verbose
working-directory: ./example
# build_linux:
# name: Linux Client
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# submodules: recursive
# - run: sudo apt-get update -y
# - run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
# - uses: subosito/flutter-action@v2
# with:
# channel: "stable"
# cache: true
# - run: cd example
# - run: flutter pub get
# - run: flutter build linux --verbose
build_macOS:
name: macOS Client
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
- name: Flutter Pub Get
run: flutter pub get
- name: Flutter Build macOS
run: flutter build macos --verbose
working-directory: ./example