forked from rustdesk/rustdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.23 KB
/
web-client.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
name: Build Web Client
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Prepare Environment
run: |
sudo apt-get update && sudo apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 clang cmake ninja-build pkg-config libgtk-3-dev
cd flutter/web/js && npm install ts-proto && npm install [email protected] && npm install yarn -g && npm install typescript -g && npm install protoc -g && yarn build
sudo git clone https://github.com/flutter/flutter.git /usr/local/flutter
- name: Build
run: |
export PATH=/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:$PATH
cd flutter && flutter doctor
flutter channel master
flutter config --enable-web
flutter build web
tar -czf ../web.tar.gz flutter/build/web
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: web.tar.gz
path: web.tar.gz