-
Notifications
You must be signed in to change notification settings - Fork 2
120 lines (103 loc) · 3.72 KB
/
all.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
name: Compile
on:
pull_request: {}
# push:
# branches:
# - main
push:
tags:
- '*'
jobs:
build-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- { name: "win64", os: "windows-2022", python-version: "3.9", python-major: "39"}
- { name: "win64", os: "windows-2022", python-version: "3.11", python-major: "311"}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Download Libfaust
shell: cmd
run: |
cd thirdparty/libfaust
call download_libfaust.bat
- name: Build TD-Faust
shell: cmd
run: |
call build_windows.bat
env:
PYTHONVER: ${{ matrix.python-version}}
- name: Make distribution
run: |
mkdir TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}
move ${{ github.workspace }}/Plugins/TD-Faust.dll TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}
move ${{ github.workspace }}/Plugins/sndfile.dll TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}
cp -v -r ${{ github.workspace }}/Plugins/faustlibraries TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}
Remove-Item -Recurse -Force "TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}/faustlibraries/.git"
7z a TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}.zip ./TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}/* -r
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}
path: TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}.zip
# build-macos:
# strategy:
# matrix:
# include:
# - name: macos-x86_64
# os: macos-latest
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# - name: Setup Python 3.8
# uses: actions/setup-python@v2
# with:
# python-version: '3.8'
# - name: Setup Python 3.9
# run: |
# pip install --upgrade certifi
# cd install_script
# python macos_install_python.py
# - name: Build Everything
# run: |
# export PATH=/Library/Frameworks/Python.framework/Versions/3.9:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.9/lib:$PATH
# which python3
# python3 --version
# sh -v build_macos.sh
# - name: Make distribution
# run: |
# rm -rf Plugins/faustlibraries/.git
# zip -r TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}.zip Plugins
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}
# path: TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }}.zip
create-release:
if: startsWith(github.ref, 'refs/tags/v')
# needs: [build-windows, build-macos]
needs: [build-windows]
runs-on: ubuntu-latest
name: "Create Release on GitHub"
steps:
- uses: actions/download-artifact@v3
with:
path: "dist"
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true