-
Notifications
You must be signed in to change notification settings - Fork 25
136 lines (115 loc) · 3.9 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ "master", "CI", "actions"]
paths-ignore: ['md-help/**']
pull_request:
branches: [ "master", "CI", "actions"]
paths-ignore: ['md-help/**', 'Help-files/**']
jobs:
# ===============================================================
# ===============================================================
# ===============================================================
Linux-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install PureData
run: sudo apt-get install puredata -y
- name: Downloads pd-Sources
run: |
PD_URL=$(curl -L -s https://api.github.com/repos/pure-data/pure-data/tags | grep zipball_url | grep -v latest | grep -v pd-0.54 | grep -v tagtest | head -n 1 | cut -d '"' -f 4)
curl -L -o pure-data.zip $PD_URL
unzip pure-data.zip
rm pure-data.zip
mv pure-data-* pure-data
- name: Build pd-cyclone
run: |
make install PDINCLUDEDIR=./pure-data/src PDLIBDIR=./pd-cyclone extension=l_amd64
- name: Upload Zip
uses: actions/upload-artifact@v3
with:
name: cyclone
path: ./pd-cyclone/cyclone/*
# # # # ===============================================================
# # # # ===============================================================
# # # # ===============================================================
Windows-Build:
runs-on: windows-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- if: runner.os == 'Windows'
name: "Install mingw deps"
uses: msys2/setup-msys2@v2
with:
install: make mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-ntldd-git mingw-w64-x86_64-fluidsynth mingw64/mingw-w64-x86_64-cmake unzip curl
update: false
- if: runner.os == 'Windows'
name: Get Pd
shell: msys2 {0}
run: |
curl -L -o pure-data.zip http://msp.ucsd.edu/Software/pd-0.54-0.msw.zip
unzip pure-data.zip
rm pure-data.zip
rename pd-0.54-0 pure-data pd-0.54-0
- if: runner.os == 'Windows'
name: Build pd-else
shell: msys2 {0}
run: |
make install PDDIR=./pure-data PDLIBDIR=./pd-cyclone extension=m_amd64
- name: Upload Zip
uses: actions/upload-artifact@v3
with:
name: cyclone
path: ./pd-cyclone/cyclone/*
# # ===============================================================
# # ===============================================================
# # ===============================================================
Mac-Intel:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: set Enviroment
run: |
brew cleanup --prune=all
brew install --cask pd
- name: Build pd-cyclone
run: |
make install PDLIBDIR=./pd-cyclone extension=d_amd64
- name: Upload Zip
uses: actions/upload-artifact@v3
with:
name: cyclone
path: ./pd-cyclone/cyclone/*
# ===============================================================
# ===============================================================
# ===============================================================
Mac-ARM:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: set Enviroment
run: |
brew cleanup --prune=all
brew install --cask pd
- name: Build pd-cyclone
run: |
make install PDLIBDIR=./pd-cyclone extension=d_arm64
- name: Upload Zip
uses: actions/upload-artifact@v3
with:
name: cyclone
path: ./pd-cyclone/cyclone/*