Skip to content

Commit e6feb96

Browse files
committed
fix actions
1 parent 5102d2b commit e6feb96

File tree

1 file changed

+43
-60
lines changed

1 file changed

+43
-60
lines changed

.github/workflows/c-cpp.yml

Lines changed: 43 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ on:
99
paths-ignore: ['md-help/**', 'Help-files/**']
1010

1111
jobs:
12-
13-
# ===============================================================
14-
# ===============================================================
15-
# ===============================================================
1612
Linux-Build:
1713
runs-on: ubuntu-latest
1814
steps:
1915
- uses: actions/checkout@v3
2016
- name: Install PureData
21-
run: sudo apt-get install puredata -y
17+
run: sudo apt-get install puredata -y
2218

23-
- name: Downloads pd-Sources
19+
- name: Downloads pd-Sources
2420
run: |
2521
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)
2622
curl -L -o pure-data.zip $PD_URL
@@ -32,60 +28,50 @@ jobs:
3228
run: |
3329
make install PDINCLUDEDIR=./pure-data/src PDLIBDIR=./pd-cyclone extension=l_amd64
3430
35-
- name: Upload Zip
36-
uses: actions/upload-artifact@v3
31+
- name: Upload Artifact
32+
uses: actions/upload-artifact@v4
3733
with:
38-
name: cyclone
34+
name: cyclone-linux
3935
path: ./pd-cyclone/cyclone/*
4036

41-
# # # # ===============================================================
42-
# # # # ===============================================================
43-
# # # # ===============================================================
44-
4537
Windows-Build:
46-
runs-on: windows-latest
47-
timeout-minutes: 25
48-
steps:
49-
- uses: actions/checkout@v3
50-
with:
51-
submodules: recursive
52-
fetch-depth: 0
38+
runs-on: windows-latest
39+
timeout-minutes: 25
40+
steps:
41+
- uses: actions/checkout@v3
42+
with:
43+
submodules: recursive
44+
fetch-depth: 0
5345

54-
- uses: actions/setup-python@v4
55-
with:
56-
python-version: '3.10'
46+
- uses: actions/setup-python@v4
47+
with:
48+
python-version: '3.10'
5749

58-
- if: runner.os == 'Windows'
59-
name: "Install mingw deps"
60-
uses: msys2/setup-msys2@v2
61-
with:
62-
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
63-
update: false
50+
- name: "Install mingw deps"
51+
uses: msys2/setup-msys2@v2
52+
with:
53+
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
54+
update: false
6455

65-
- if: runner.os == 'Windows'
66-
name: Get Pd
67-
shell: msys2 {0}
68-
run: |
69-
curl -L -o pure-data.zip http://msp.ucsd.edu/Software/pd-0.54-0.msw.zip
70-
unzip pure-data.zip
71-
rm pure-data.zip
72-
rename pd-0.54-0 pure-data pd-0.54-0
56+
- name: Get Pd
57+
shell: msys2 {0}
58+
run: |
59+
curl -L -o pure-data.zip http://msp.ucsd.edu/Software/pd-0.54-0.msw.zip
60+
unzip pure-data.zip
61+
rm pure-data.zip
62+
rename pd-0.54-0 pure-data pd-0.54-0
7363
74-
- if: runner.os == 'Windows'
75-
name: Build pd-else
76-
shell: msys2 {0}
77-
run: |
64+
- name: Build pd-cyclone
65+
shell: msys2 {0}
66+
run: |
7867
make install PDDIR=./pure-data PDLIBDIR=./pd-cyclone extension=m_amd64
7968
80-
- name: Upload Zip
81-
uses: actions/upload-artifact@v3
82-
with:
83-
name: cyclone
84-
path: ./pd-cyclone/cyclone/*
69+
- name: Upload Artifact
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: cyclone-windows
73+
path: ./pd-cyclone/cyclone/*
8574

86-
# # ===============================================================
87-
# # ===============================================================
88-
# # ===============================================================
8975
Mac-Intel:
9076
runs-on: macos-latest
9177
steps:
@@ -94,7 +80,7 @@ jobs:
9480
submodules: recursive
9581
fetch-depth: 0
9682

97-
- name: set Enviroment
83+
- name: Set Environment
9884
run: |
9985
brew cleanup --prune=all
10086
brew install --cask pd
@@ -103,15 +89,12 @@ jobs:
10389
run: |
10490
make install PDLIBDIR=./pd-cyclone extension=d_amd64
10591
106-
- name: Upload Zip
107-
uses: actions/upload-artifact@v3
92+
- name: Upload Artifact
93+
uses: actions/upload-artifact@v4
10894
with:
109-
name: cyclone
95+
name: cyclone-mac-intel
11096
path: ./pd-cyclone/cyclone/*
11197

112-
# ===============================================================
113-
# ===============================================================
114-
# ===============================================================
11598
Mac-ARM:
11699
runs-on: macos-latest
117100
steps:
@@ -120,7 +103,7 @@ jobs:
120103
submodules: recursive
121104
fetch-depth: 0
122105

123-
- name: set Enviroment
106+
- name: Set Environment
124107
run: |
125108
brew cleanup --prune=all
126109
brew install --cask pd
@@ -129,8 +112,8 @@ jobs:
129112
run: |
130113
make install PDLIBDIR=./pd-cyclone extension=d_arm64
131114
132-
- name: Upload Zip
133-
uses: actions/upload-artifact@v3
115+
- name: Upload Artifact
116+
uses: actions/upload-artifact@v4
134117
with:
135-
name: cyclone
118+
name: cyclone-mac-arm
136119
path: ./pd-cyclone/cyclone/*

0 commit comments

Comments
 (0)