-
-
Notifications
You must be signed in to change notification settings - Fork 428
86 lines (84 loc) · 2.76 KB
/
package-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
name: Package Release
on:
push:
branches:
- "releases/**"
workflow_dispatch:
# This is complicated without native ARM runners. For now, macOS builds can be deployed manually.
# jobs:
# darwin-arm64:
# runs-on: macos-12
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - name: Install dependencies into target
# run: 'pip install -r requirements-mac-MPS-CPU.txt --no-cache-dir --target ../.python_dependencies'
# working-directory: stable_diffusion
# - name: Archive and upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: dream_textures-darwin-arm64
# path: ${{ github.workspace }}
jobs:
windows-cuda:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: dream_textures
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: '**/win-linux-cuda.txt'
- name: Install dependencies into target
shell: bash
run: 'python -m pip install -r requirements/win-linux-cuda.txt --no-cache-dir --target .python_dependencies'
working-directory: dream_textures
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: zip
filename: dream_textures-windows-cuda.zip
exclusions: '*.git*'
- name: Archive and upload artifact
uses: actions/upload-artifact@v3
with:
name: dream_textures-windows-cuda
path: dream_textures-windows-cuda.zip
windows-directml:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: dream_textures
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: '**/win-dml.txt'
- name: Install dependencies into target
shell: bash
run: 'python -m pip install -r requirements/win-dml.txt --no-cache-dir --target .python_dependencies'
working-directory: dream_textures
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: zip
filename: dream_textures-windows-directml.zip
exclusions: '*.git*'
- name: Archive and upload artifact
uses: actions/upload-artifact@v3
with:
name: dream_textures-windows-directml
path: dream_textures-windows-directml.zip