Skip to content

Commit

Permalink
Merge pull request #5 from cieldeville/master
Browse files Browse the repository at this point in the history
Fixed GitHub Actions for automated builds
  • Loading branch information
mdedwards authored Dec 14, 2023
2 parents 8bce666 + 408beee commit 9c28d1a
Show file tree
Hide file tree
Showing 9 changed files with 303 additions and 204 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build All

on:
push:
branches:
- master
schedule:
- cron: '37 4 13 * *'
workflow_dispatch:

jobs:
max_build_windows:
uses: ./.github/workflows/max-windows.yml
max_build_macos:
uses: ./.github/workflows/max-macos.yml
pd_build_windows:
uses: ./.github/workflows/pd-windows.yml
pd_build_macos:
uses: ./.github/workflows/pd-macos.yml
pd_build_linux:
uses: ./.github/workflows/pd-linux.yml
203 changes: 0 additions & 203 deletions .github/workflows/build.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/max-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build MaxMSP Windows

on: [workflow_dispatch, workflow_call]

jobs:
# ==========================
# MaxMSP Build
# ==========================

# System: macOS
# Architecture: MaxMSP
max_build_macos:
runs-on: macos-latest
steps:
- name: Check out mdeGranular
uses: actions/checkout@v4
with:
path: 'mde'
submodules: 'recursive'
- name: Install system libraries
run: brew install autoconf automake libtool tree cmake
- name: Prepare mdeGranular~ XCode project via CMake
run: |
cd $GITHUB_WORKSPACE/mde/max/cmake
cmake -G Xcode -B ./build -S .
xcodebuild -list -project $GITHUB_WORKSPACE/mde/max/cmake/build/mdeGranular.xcodeproj
- name: Build mdeGranular
run: |
xcodebuild -project $GITHUB_WORKSPACE/mde/max/cmake/build/mdeGranular.xcodeproj -scheme mdeGranular -configuration Release build
- name: Post Build deployment
run: |
cd $GITHUB_WORKSPACE/mde/max/cmake/build/Release
mkdir temp
mv mdeGranular~.mxo/ temp/
mv temp/ mdeGranular~.mxo/
- name: Upload Binaries
uses: actions/upload-artifact@v3
with:
name: mdeGranular~.mxo
path: ${{ github.workspace }}/mde/max/cmake/build/Release/mdeGranular~.mxo
44 changes: 44 additions & 0 deletions .github/workflows/max-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build MaxMSP Windows

on: [workflow_dispatch, workflow_call]

jobs:
# ==========================
# MaxMSP Build
# ==========================

# System: Windows
# Architecture: MaxMSP
max_build_windows:
runs-on: windows-latest
env:
MSYSTEM: 'MINGW64'
CHERE_INVOKING: 1
PDINCLUDEDIR: /mingw64/include
PDBINDIR: /mingw64/bin
PDLIBDIR: /mingw64/bin
defaults:
run:
shell: msys2 {0}

steps:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain base-devel
- name: Check out mdeGranular
uses: actions/checkout@v4
with:
path: 'mde'
submodules: 'recursive'
- name: Build mdeGranular
run: |
cd $GITHUB_WORKSPACE/mde/max/windows
make
- name: Upload Binaries
uses: actions/upload-artifact@v3
with:
name: mdeGranular~.mxe64
path: ${{ github.workspace }}/mde/max/windows/mdeGranular~.mxe64
41 changes: 41 additions & 0 deletions .github/workflows/pd-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Pure-Data Linux

on: [workflow_dispatch, workflow_call]

jobs:
# ==========================
# Pure-Data Build
# ==========================

# System: Linux
# Architecture: Pure Data
pd_build_linux:
runs-on: ubuntu-latest
steps:
- name: Check out Pure-Data
uses: actions/checkout@v4
with:
repository: 'pure-data/pure-data'
path: 'pd'
- name: Check out mdeGranular
uses: actions/checkout@v4
with:
path: 'mde'
- name: Install system libraries
run: sudo apt-get install build-essential libasound2-dev
- name: Build and Install Pure-Data
run: |
cd $GITHUB_WORKSPACE/pd
./autogen.sh
./configure
make
sudo make install
- name: Build and Install mdeGranular
run: |
cd $GITHUB_WORKSPACE/mde/pd
make
- name: Upload Binaries
uses: actions/upload-artifact@v3
with:
name: mdeGranular~.pd_linux
path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_linux
Loading

0 comments on commit 9c28d1a

Please sign in to comment.