-
Notifications
You must be signed in to change notification settings - Fork 22
175 lines (173 loc) · 7.79 KB
/
release.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: Create releases
on:
# https://github.com/orgs/community/discussions/27028#discussioncomment-3254360
workflow_dispatch:
jobs:
release-ubuntu-20:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # https://github.com/marketplace/actions/get-latest-tag
- uses: subosito/flutter-action@v2 # https://github.com/marketplace/actions/flutter-action
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Install dependencies
run: flutter pub get
- name: Install build dependencies
run: sudo apt install -y ninja-build libgtk-3-dev
- run: flutter doctor
- name: Get tag for release
id: currentTag
uses: WyriHaximus/github-action-get-previous-tag@v1 # https://github.com/marketplace/actions/get-latest-tag
- name: Build release linux
run: flutter build linux --release
- name: Copy script files
run: |
cp -R script build/linux/x64/release/bundle/script
- name: Copy ldd files
run: |
ldd build/linux/x64/release/bundle/DeepFaceLabClient
mv build/linux/x64/release/bundle DeepFaceLabClient-linux
bash requirements/linux/import_lib.sh
- name: Zip release linux
run: |
zip -r DeepFaceLabClient-ubuntu-20-${{ steps.currentTag.outputs.tag }}.zip DeepFaceLabClient-linux
- name: Extract release notes # https://github.com/marketplace/actions/extract-release-notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- uses: ncipollo/release-action@v1 # https://github.com/marketplace/actions/create-release
with:
artifacts: DeepFaceLabClient-ubuntu-20-${{ steps.currentTag.outputs.tag }}.zip
tag: ${{ steps.currentTag.outputs.tag }}
name: DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
allowUpdates: true
body: ${{ steps.extract-release-notes.outputs.release_notes }}
release-ubuntu-22:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # https://github.com/marketplace/actions/get-latest-tag
- uses: subosito/flutter-action@v2 # https://github.com/marketplace/actions/flutter-action
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Install dependencies
run: flutter pub get
- name: Install build dependencies
run: sudo apt install -y ninja-build libgtk-3-dev
- run: flutter doctor
- name: Get tag for release
id: currentTag
uses: WyriHaximus/github-action-get-previous-tag@v1 # https://github.com/marketplace/actions/get-latest-tag
- name: Build release linux
run: flutter build linux --release
- name: Copy script files
run: |
cp -R script build/linux/x64/release/bundle/script
- name: Copy ldd files
run: |
ldd build/linux/x64/release/bundle/DeepFaceLabClient
mv build/linux/x64/release/bundle DeepFaceLabClient-linux
bash requirements/linux/import_lib.sh
- name: Zip release linux
run: |
zip -r DeepFaceLabClient-ubuntu-22-${{ steps.currentTag.outputs.tag }}.zip DeepFaceLabClient-linux
- name: Extract release notes # https://github.com/marketplace/actions/extract-release-notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- uses: ncipollo/release-action@v1 # https://github.com/marketplace/actions/create-release
with:
artifacts: DeepFaceLabClient-ubuntu-22-${{ steps.currentTag.outputs.tag }}.zip
tag: ${{ steps.currentTag.outputs.tag }}
name: DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
allowUpdates: true
body: ${{ steps.extract-release-notes.outputs.release_notes }}
release-ubuntu-24:
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # https://github.com/marketplace/actions/get-latest-tag
- uses: subosito/flutter-action@v2 # https://github.com/marketplace/actions/flutter-action
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Install dependencies
run: flutter pub get
- name: Install build dependencies
run: sudo apt install -y ninja-build libgtk-3-dev
- run: flutter doctor
- name: Get tag for release
id: currentTag
uses: WyriHaximus/github-action-get-previous-tag@v1 # https://github.com/marketplace/actions/get-latest-tag
- name: Build release linux
run: flutter build linux --release
- name: Copy script files
run: |
cp -R script build/linux/x64/release/bundle/script
- name: Copy ldd files
run: |
ldd build/linux/x64/release/bundle/DeepFaceLabClient
mv build/linux/x64/release/bundle DeepFaceLabClient-linux
bash requirements/linux/import_lib.sh
- name: Zip release linux
run: |
zip -r DeepFaceLabClient-ubuntu-24-${{ steps.currentTag.outputs.tag }}.zip DeepFaceLabClient-linux
- name: Extract release notes # https://github.com/marketplace/actions/extract-release-notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- uses: ncipollo/release-action@v1 # https://github.com/marketplace/actions/create-release
with:
artifacts: DeepFaceLabClient-ubuntu-24-${{ steps.currentTag.outputs.tag }}.zip
tag: ${{ steps.currentTag.outputs.tag }}
name: DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
allowUpdates: true
body: ${{ steps.extract-release-notes.outputs.release_notes }}
release-windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # https://github.com/marketplace/actions/get-latest-tag
- uses: subosito/flutter-action@v2 # https://github.com/marketplace/actions/flutter-action
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Install dependencies
run: flutter pub get
- run: flutter doctor
- name: Get tag for release
id: currentTag
uses: WyriHaximus/github-action-get-previous-tag@v1 # https://github.com/marketplace/actions/get-latest-tag
- name: Build release windows
run: flutter build windows --release
- name: Copy dll files
run: |
copy C:\Windows\System32\msvcp140.dll build\windows\x64\runner\Release
copy C:\Windows\System32\vcruntime140.dll build\windows\x64\runner\Release
copy C:\Windows\System32\vcruntime140_1.dll build\windows\x64\runner\Release
- name: Copy script files
run: |
mkdir .\build\windows\x64\runner\Release\script\
xcopy .\script\ .\build\windows\x64\runner\Release\script\ /e
- name: Zip release windows
run: |
move build/windows/x64/runner/Release DeepFaceLabClient-windows
7z a -r DeepFaceLabClient-windows-${{ steps.currentTag.outputs.tag }}.zip DeepFaceLabClient-windows
- name: Extract release notes # https://github.com/marketplace/actions/extract-release-notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- uses: ncipollo/release-action@v1 # https://github.com/marketplace/actions/create-release
with:
artifacts: DeepFaceLabClient-windows-${{ steps.currentTag.outputs.tag }}.zip
tag: ${{ steps.currentTag.outputs.tag }}
name: DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
allowUpdates: true
body: ${{ steps.extract-release-notes.outputs.release_notes }}