-
Notifications
You must be signed in to change notification settings - Fork 26
81 lines (77 loc) · 2.41 KB
/
create_artifacts.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
name: Upload artifact
on:
push:
branches:
- '**'
tags-ignore: # ignore push via new tag
- '*.*'
pull_request:
types: [opened, synchronize, reopened]
jobs:
flutter_test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/[email protected]
- name: Install Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
- name: Flutter format
run: |
flutter format . --set-exit-if-changed
flutter pub get
flutter pub run import_sorter:main --no-comments --exit-if-changed
- name: Flutter analyze
run: flutter analyze .
- name: Flutter test
run: flutter test
build_windows:
needs: flutter_test
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/[email protected]
- name: Install Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
- name: Enable desktop support
run: flutter config --enable-windows-desktop
- name: Build Windows app
run: flutter build windows
- name: Copy VC redistributables
run: |
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') .
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') .
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') .
working-directory: ./build/windows/runner/Release
- name: Create artifact
uses: actions/upload-artifact@v2
with:
name: CCExtractor Flutter GUI Windows
path: |
./build/windows/runner/Release/*.exe
./build/windows/runner/Release/*.dll
./build/windows/runner/Release/data
build_linux:
needs: flutter_test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/[email protected]
- name: Install Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
- name: Enable desktop support
run: |
flutter config --enable-linux-desktop
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev --fix-missing
- name: Build Linux app
run: flutter build linux
- name: Create artifact
uses: actions/upload-artifact@v2
with:
name: CCExtractor Flutter GUI Linux
path: ./build/linux/x64/release/bundle/