Skip to content

Commit 9c28d1a

Browse files
authored
Merge pull request #5 from cieldeville/master
Fixed GitHub Actions for automated builds
2 parents 8bce666 + 408beee commit 9c28d1a

File tree

9 files changed

+303
-204
lines changed

9 files changed

+303
-204
lines changed

.github/workflows/build-all.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build All
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '37 4 13 * *'
9+
workflow_dispatch:
10+
11+
jobs:
12+
max_build_windows:
13+
uses: ./.github/workflows/max-windows.yml
14+
max_build_macos:
15+
uses: ./.github/workflows/max-macos.yml
16+
pd_build_windows:
17+
uses: ./.github/workflows/pd-windows.yml
18+
pd_build_macos:
19+
uses: ./.github/workflows/pd-macos.yml
20+
pd_build_linux:
21+
uses: ./.github/workflows/pd-linux.yml

.github/workflows/build.yml

-203
This file was deleted.

.github/workflows/max-macos.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build MaxMSP Windows
2+
3+
on: [workflow_dispatch, workflow_call]
4+
5+
jobs:
6+
# ==========================
7+
# MaxMSP Build
8+
# ==========================
9+
10+
# System: macOS
11+
# Architecture: MaxMSP
12+
max_build_macos:
13+
runs-on: macos-latest
14+
steps:
15+
- name: Check out mdeGranular
16+
uses: actions/checkout@v4
17+
with:
18+
path: 'mde'
19+
submodules: 'recursive'
20+
- name: Install system libraries
21+
run: brew install autoconf automake libtool tree cmake
22+
- name: Prepare mdeGranular~ XCode project via CMake
23+
run: |
24+
cd $GITHUB_WORKSPACE/mde/max/cmake
25+
cmake -G Xcode -B ./build -S .
26+
xcodebuild -list -project $GITHUB_WORKSPACE/mde/max/cmake/build/mdeGranular.xcodeproj
27+
- name: Build mdeGranular
28+
run: |
29+
xcodebuild -project $GITHUB_WORKSPACE/mde/max/cmake/build/mdeGranular.xcodeproj -scheme mdeGranular -configuration Release build
30+
- name: Post Build deployment
31+
run: |
32+
cd $GITHUB_WORKSPACE/mde/max/cmake/build/Release
33+
mkdir temp
34+
mv mdeGranular~.mxo/ temp/
35+
mv temp/ mdeGranular~.mxo/
36+
- name: Upload Binaries
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: mdeGranular~.mxo
40+
path: ${{ github.workspace }}/mde/max/cmake/build/Release/mdeGranular~.mxo

.github/workflows/max-windows.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build MaxMSP Windows
2+
3+
on: [workflow_dispatch, workflow_call]
4+
5+
jobs:
6+
# ==========================
7+
# MaxMSP Build
8+
# ==========================
9+
10+
# System: Windows
11+
# Architecture: MaxMSP
12+
max_build_windows:
13+
runs-on: windows-latest
14+
env:
15+
MSYSTEM: 'MINGW64'
16+
CHERE_INVOKING: 1
17+
PDINCLUDEDIR: /mingw64/include
18+
PDBINDIR: /mingw64/bin
19+
PDLIBDIR: /mingw64/bin
20+
defaults:
21+
run:
22+
shell: msys2 {0}
23+
24+
steps:
25+
- name: Setup MSYS2
26+
uses: msys2/setup-msys2@v2
27+
with:
28+
msystem: MINGW64
29+
update: true
30+
install: git mingw-w64-x86_64-toolchain base-devel
31+
- name: Check out mdeGranular
32+
uses: actions/checkout@v4
33+
with:
34+
path: 'mde'
35+
submodules: 'recursive'
36+
- name: Build mdeGranular
37+
run: |
38+
cd $GITHUB_WORKSPACE/mde/max/windows
39+
make
40+
- name: Upload Binaries
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: mdeGranular~.mxe64
44+
path: ${{ github.workspace }}/mde/max/windows/mdeGranular~.mxe64

.github/workflows/pd-linux.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Pure-Data Linux
2+
3+
on: [workflow_dispatch, workflow_call]
4+
5+
jobs:
6+
# ==========================
7+
# Pure-Data Build
8+
# ==========================
9+
10+
# System: Linux
11+
# Architecture: Pure Data
12+
pd_build_linux:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out Pure-Data
16+
uses: actions/checkout@v4
17+
with:
18+
repository: 'pure-data/pure-data'
19+
path: 'pd'
20+
- name: Check out mdeGranular
21+
uses: actions/checkout@v4
22+
with:
23+
path: 'mde'
24+
- name: Install system libraries
25+
run: sudo apt-get install build-essential libasound2-dev
26+
- name: Build and Install Pure-Data
27+
run: |
28+
cd $GITHUB_WORKSPACE/pd
29+
./autogen.sh
30+
./configure
31+
make
32+
sudo make install
33+
- name: Build and Install mdeGranular
34+
run: |
35+
cd $GITHUB_WORKSPACE/mde/pd
36+
make
37+
- name: Upload Binaries
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: mdeGranular~.pd_linux
41+
path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_linux

0 commit comments

Comments
 (0)