-
-
Notifications
You must be signed in to change notification settings - Fork 3
108 lines (92 loc) · 2.62 KB
/
flutter-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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Flutter Build
on:
push:
paths:
- "app/**"
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-app-windows:
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.0"
channel: stable
cache: true
- name: Setup Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: 1.3.204.0
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: Install winget
uses: Cyberboss/install-winget@v1
- name: Install FFmpeg
run: |
winget install -e --id Gyan.FFmpeg --accept-source-agreements --accept-package-agreements
- name: Copy .env.dev to .env
run: |
cd .\app
copy .env.dev .env
- name: Get dependencies
run: |
cd .\app
flutter pub get
- name: Generate files
run: |
cd .\app
dart run build_runner build --delete-conflicting-outputs
- name: Build App
run: |
cd .\app
flutter build windows
# build-app-linux:
# runs-on: ubuntu-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v2
# - name: Setup Flutter SDK
# uses: subosito/flutter-action@v2
# with:
# flutter-version: "2.8.1"
# channel: stable
#
# - name: Setup Vulkan SDK
# uses: humbletim/[email protected]
# with:
# vulkan-query-version: 1.3.204.0
# vulkan-components: Vulkan-Headers, Vulkan-Loader
# vulkan-use-cache: true
#
# - name: Install Dependencies
# run: |
# sudo apt update -y
# sudo apt install ffmpeg -y
# sudo apt install clang -y
# sudo apt install cmake ninja-build libgtk-3-dev -y
# sudo apt install libvulkan-dev vulkan-validationlayers-dev -y
# sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev -y
# - name: Copy .env.dev to .env
# run: |
# cd ./app
# cp .env.dev .env
# - name: Get dependencies
# run: |
# cd ./app
# flutter pub get
# - name: Generate files
# run: |
# cd ./app
# dart run build_runner build --delete-conflicting-outputs
# - name: Build App
# run: |
# cd ./app
# flutter build linux