-
Notifications
You must be signed in to change notification settings - Fork 6
executable file
·72 lines (71 loc) · 2.71 KB
/
workflow.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
on: push
jobs:
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter config --enable-windows-desktop
- run: flutter pub get
- run: flutter build windows
- run: xcopy ".\external_dependencies\windows" ".\build\windows\x64\runner\Release\" /y /s
- run: mkdir ".\build\windows\x64\runner\Release\dlls"
- run: xcopy ".\dlls" ".\build\windows\x64\runner\Release\dlls" /y /s
- uses: actions/upload-artifact@v3
with:
name: thepuzzlecell-windows
path: build/windows/x64/runner/Release
- run: flutter build windows --debug
- run: xcopy ".\external_dependencies\windows" ".\build\windows\x64\runner\Debug\" /y /s
- run: mkdir ".\build\windows\x64\runner\Debug\dlls"
- run: xcopy ".\dlls" ".\build\windows\x64\runner\Debug\dlls" /y /s
- run: xcopy ".\external_dependencies\windows" ".\build\windows\x64\runner\Debug\" /y /s
- uses: actions/upload-artifact@v3
with:
name: thepuzzlecell-windows-debug
path: build/windows/x64/runner/Debug
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter pub get
- run: sudo apt install -y libunwind-dev
- run: sudo apt-get install libgstreamer1.0-dev
- run: sudo apt-get install libgstreamer-plugins-base1.0-dev
- run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
- run: mkdir -p build/linux/x64/release/bundle/dlls
- run: mkdir -p build/linux/x64/debug/bundle/dlls
- run: cp -r dlls build/linux/x64/release/bundle/dlls
- run: cp -r dlls build/linux/x64/debug/bundle/dlls
- run: flutter config --enable-linux-desktop
- run: flutter build linux
- run: flutter build linux --debug
- uses: actions/upload-artifact@v3
with:
name: thepuzzlecell-linux
path: build/linux/x64/release/bundle
- uses: actions/upload-artifact@v3
with:
name: thepuzzlecell-linux-debug
path: build/linux/x64/debug/bundle
build_macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: brew install cmake
- run: gem install cocoapods
- run: flutter pub get
- run: flutter config --enable-macos-desktop
- run: flutter build macos
- uses: actions/upload-artifact@v3
with:
name: thepuzzlecell-macos
path: build/macos/Build/Products/Release