From 563f44f484436c60582b88a338f1ffb29ac895f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9-Maurice=20Hanne?= <9755720+cieldeville@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:41:22 +0100 Subject: [PATCH 1/6] The MaxMSP SDK changed its layout and entire build system which broke down the MaxMSP builds on Windows and MacOS. The default MSYS2 image seemingly no longer included aclocal for autoconf hence why the PureData Windows build failed. A lot of trial and error and writing a CMake file to build with MaxMSP on Mac (without even owning a Mac) got things working again. --- .github/workflows/build-all.yml | 20 +++ .github/workflows/build.yml | 203 ------------------------------ .github/workflows/max-macos.yml | 40 ++++++ .github/workflows/max-windows.yml | 44 +++++++ .github/workflows/pd-linux.yml | 41 ++++++ .github/workflows/pd-macos.yml | 41 ++++++ .github/workflows/pd-windows.yml | 60 +++++++++ max/cmake/CMakeLists.txt | 55 ++++++++ 8 files changed, 301 insertions(+), 203 deletions(-) create mode 100644 .github/workflows/build-all.yml delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/max-macos.yml create mode 100644 .github/workflows/max-windows.yml create mode 100644 .github/workflows/pd-linux.yml create mode 100644 .github/workflows/pd-macos.yml create mode 100644 .github/workflows/pd-windows.yml create mode 100644 max/cmake/CMakeLists.txt diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml new file mode 100644 index 00000000..42847056 --- /dev/null +++ b/.github/workflows/build-all.yml @@ -0,0 +1,20 @@ +name: Build All + +on: + push: + branches: + - master + - actions-fix + 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 \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 9b4ee9ff..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,203 +0,0 @@ -name: Build All - -on: - push: - branches: - - master - -jobs: - - # ========================== - # Pure-Data Builds - # ========================== - - # System: Linux - # Architecture: Pure Data - pd_build_linux: - runs-on: ubuntu-latest - steps: - - name: Check out Pure-Data - uses: actions/checkout@v2 - with: - repository: 'pure-data/pure-data' - path: 'pd' - - name: Check out mdeGranular - uses: actions/checkout@v2 - 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@v2 - with: - name: mdeGranular~.pd_linux - path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_linux - - # System: macOS - # Architecture: Pure Data - pd_build_macos: - runs-on: macos-latest - steps: - - name: Check out Pure-Data - uses: actions/checkout@v2 - with: - repository: 'pure-data/pure-data' - path: 'pd' - - name: Check out mdeGranular - uses: actions/checkout@v2 - with: - path: 'mde' - - name: Install system libraries - run: brew install autoconf automake libtool - - 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@v2 - with: - name: mdeGranular~.pd_darwin - path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_darwin - - - # System: Windows - # Architecture: Pure Data - pd_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 Pure-Data - uses: actions/checkout@v2 - with: - repository: 'pure-data/pure-data' - path: 'pd' - - name: Check out mdeGranular - uses: actions/checkout@v2 - with: - path: 'mde' - - name: Build and Install Pure-Data - run: | - cd $GITHUB_WORKSPACE/pd - ./autogen.sh - ./configure - make - make install - - name: Build and Install mdeGranular - run: | - cd $GITHUB_WORKSPACE/mde/pd - make - - name: Upload Binaries - uses: actions/upload-artifact@v2 - with: - name: mdeGranular~.dll - path: ${{ github.workspace }}/mde/pd/mdeGranular~.dll - - - # ========================== - # MaxMSP Builds - # ========================== - - # 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@v2 - with: - path: 'mde' - submodules: 'true' - - name: Build mdeGranular - run: | - cd $GITHUB_WORKSPACE/mde/max/windows - make - - name: Upload Binaries - uses: actions/upload-artifact@v2 - with: - name: mdeGranular~.mxe64 - path: ${{ github.workspace }}/mde/max/windows/mdeGranular~.mxe64 - - - # System: macOS - # Architecture: MaxMSP - max_build_macos: - runs-on: macos-latest - steps: - - name: Check out mdeGranular - uses: actions/checkout@v2 - with: - path: 'mde' - submodules: 'recursive' - - name: Install system libraries - run: brew install autoconf automake libtool tree - - name: Prepare mdeGranular~ XCode project - run: | - cd $GITHUB_WORKSPACE/mde/max/macosx - cp -R xcode ../sdk/source/audio/xcode - mkdir -p $GITHUB_WORKSPACE/mde/max/mdegranular/src - cp ../../src/* $GITHUB_WORKSPACE/mde/max/mdegranular/src - xcodebuild -list -project $GITHUB_WORKSPACE/mde/max/sdk/source/audio/xcode/mdeGranular~.xcodeproj - - name: Build mdeGranular - run: | - xcodebuild -project $GITHUB_WORKSPACE/mde/max/sdk/source/audio/xcode/mdeGranular~.xcodeproj -scheme max-external -configuration Deployment build - - name: Post Build deployment - run: | - cd $GITHUB_WORKSPACE/mde/max/sdk/externals/ - mkdir temp - mv mdeGranular~.mxo/ temp/ - mv temp/ mdeGranular~.mxo/ - - name: Upload Binaries - uses: actions/upload-artifact@v2 - with: - name: mdeGranular~.mxo - path: ${{ github.workspace }}/mde/max/sdk/externals/mdeGranular~.mxo - diff --git a/.github/workflows/max-macos.yml b/.github/workflows/max-macos.yml new file mode 100644 index 00000000..fc77e758 --- /dev/null +++ b/.github/workflows/max-macos.yml @@ -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@v2 + 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@v2 + with: + name: mdeGranular~.mxo + path: ${{ github.workspace }}/mde/max/cmake/build/Release/mdeGranular~.mxo \ No newline at end of file diff --git a/.github/workflows/max-windows.yml b/.github/workflows/max-windows.yml new file mode 100644 index 00000000..25be62e2 --- /dev/null +++ b/.github/workflows/max-windows.yml @@ -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@v2 + with: + path: 'mde' + submodules: 'recursive' + - name: Build mdeGranular + run: | + cd $GITHUB_WORKSPACE/mde/max/windows + make + - name: Upload Binaries + uses: actions/upload-artifact@v2 + with: + name: mdeGranular~.mxe64 + path: ${{ github.workspace }}/mde/max/windows/mdeGranular~.mxe64 \ No newline at end of file diff --git a/.github/workflows/pd-linux.yml b/.github/workflows/pd-linux.yml new file mode 100644 index 00000000..12f9a705 --- /dev/null +++ b/.github/workflows/pd-linux.yml @@ -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@v2 + with: + repository: 'pure-data/pure-data' + path: 'pd' + - name: Check out mdeGranular + uses: actions/checkout@v2 + 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@v2 + with: + name: mdeGranular~.pd_linux + path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_linux \ No newline at end of file diff --git a/.github/workflows/pd-macos.yml b/.github/workflows/pd-macos.yml new file mode 100644 index 00000000..2e285bef --- /dev/null +++ b/.github/workflows/pd-macos.yml @@ -0,0 +1,41 @@ +name: Build Pure-Data MacOS + +on: [workflow_dispatch, workflow_call] + +jobs: + # ========================== + # Pure-Data Build + # ========================== + + # System: macOS + # Architecture: Pure Data + pd_build_macos: + runs-on: macos-latest + steps: + - name: Check out Pure-Data + uses: actions/checkout@v2 + with: + repository: 'pure-data/pure-data' + path: 'pd' + - name: Check out mdeGranular + uses: actions/checkout@v2 + with: + path: 'mde' + - name: Install system libraries + run: brew install autoconf automake libtool + - 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@v2 + with: + name: mdeGranular~.pd_darwin + path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_darwin \ No newline at end of file diff --git a/.github/workflows/pd-windows.yml b/.github/workflows/pd-windows.yml new file mode 100644 index 00000000..6ba6c12c --- /dev/null +++ b/.github/workflows/pd-windows.yml @@ -0,0 +1,60 @@ +name: Build Pure-Data Windows + +on: [workflow_dispatch, workflow_call] + +jobs: + # ========================== + # Pure-Data Build + # ========================== + + # System: Windows + # Architecture: Pure Data + pd_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 + msys/libtool + msys/autoconf + msys/automake-wrapper + - name: Check out Pure-Data + uses: actions/checkout@v2 + with: + repository: 'pure-data/pure-data' + path: 'pd' + - name: Check out mdeGranular + uses: actions/checkout@v2 + with: + path: 'mde' + - name: Build and Install Pure-Data + run: | + cd $GITHUB_WORKSPACE/pd + ./autogen.sh + ./configure + make + make install + - name: Build and Install mdeGranular + run: | + cd $GITHUB_WORKSPACE/mde/pd + make + - name: Upload Binaries + uses: actions/upload-artifact@v2 + with: + name: mdeGranular~.dll + path: ${{ github.workspace }}/mde/pd/mdeGranular~.dll \ No newline at end of file diff --git a/max/cmake/CMakeLists.txt b/max/cmake/CMakeLists.txt new file mode 100644 index 00000000..fb99e015 --- /dev/null +++ b/max/cmake/CMakeLists.txt @@ -0,0 +1,55 @@ +cmake_minimum_required(VERSION 3.27) +project(mdeGranular VERSION 1.2 LANGUAGES C) + +# Configure Max SDK +add_subdirectory(../sdk ./sdk) +set(C74SUPPORT_DIR ${PROJECT_SOURCE_DIR}/../sdk/source/max-sdk-base/c74support) +set(C74SCRIPT_DIR ${C74SUPPORT_DIR}/../script) +set(MAX_SDK_MAX_INCLUDES ${C74SUPPORT_DIR}/max-includes) +set(MAX_SDK_MSP_INCLUDES ${C74SUPPORT_DIR}/msp-includes) + +if (APPLE) + if (CMAKE_OSX_ARCHITECTURES STREQUAL "") + set (CMAKE_OSX_ARCHITECTURES x86_64) + endif() + set (CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING "Minimum OS X deployment version" FORCE) + + file (STRINGS "${C74SCRIPT_DIR}/max-linker-flags.txt" C74_SYM_MAX_LINKER_FLAGS) + set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${C74_SYM_MAX_LINKER_FLAGS}") +endif() + +add_library(mdeGranular MODULE) +set_target_properties(mdeGranular PROPERTIES OUTPUT_NAME mdeGranular~) + +target_compile_definitions(mdeGranular PUBLIC MAXMSP) +target_include_directories(mdeGranular PUBLIC ${MAX_SDK_MAX_INCLUDES} ${MAX_SDK_MSP_INCLUDES}) +target_sources(mdeGranular PRIVATE ${PROJECT_SOURCE_DIR}/../../src/mdeGranular~.c ${PROJECT_SOURCE_DIR}/../../src/mdeGranular~maxmsp.c) + +if (WIN32) + target_link_directories(mdeGranular PRIVATE ${C74SUPPORT_DIR}/max-includes/x64 ${C74SUPPORT_DIR}/msp-includes/x64) + target_link_libraries(mdeGranular PRIVATE MaxAPI MaxAudio) +elseif (APPLE) + find_library( + MSP_LIBRARY "MaxAudioAPI" + REQUIRED + PATHS "${MAX_SDK_MSP_INCLUDES}" + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + target_link_libraries(mdeGranular PUBLIC ${MSP_LIBRARY}) + + set_target_properties(mdeGranular PROPERTIES BUNDLE True) + set_target_properties(mdeGranular PROPERTIES BUNDLE_EXTENSION "mxo") + + set_target_properties(mdeGranular PROPERTIES XCODE_ATTRIBUTE_WRAPPER_EXTENSION "mxo") + set_target_properties(mdeGranular PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION "${VERSION}") + set_target_properties(mdeGranular PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${C74SCRIPT_DIR}/Info.plist.in) + set_target_properties(mdeGranular PROPERTIES XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "${AUTHOR_DOMAIN}.${BUNDLE_IDENTIFIER}") + + # add_custom_command( + # TARGET mdeGranular + # POST_BUILD + # COMMAND cp "${C74SCRIPT_DIR}/PkgInfo" "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/mdeGranular\~.mxo/Contents/PkgInfo" + # COMMENT "Copy PkgInfo" + # ) +endif() From cf3dab820c236f1a756e8967beca48bba7ea7245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9-Maurice=20Hanne?= <9755720+cieldeville@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:42:12 +0100 Subject: [PATCH 2/6] Re-enabling building on all platforms --- .github/workflows/build-all.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 42847056..f36c4c49 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -4,17 +4,16 @@ on: push: branches: - master - - actions-fix workflow_dispatch: jobs: - # max_build_windows: - # uses: ./.github/workflows/max-windows.yml + 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 \ No newline at end of file + 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 \ No newline at end of file From f9d4ea1af455d791f2744062bcd83da7b232b1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9-Maurice=20Hanne?= <9755720+cieldeville@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:50:31 +0100 Subject: [PATCH 3/6] Adjusted paths to MaxMSP headers in Windows makefile --- max/windows/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/max/windows/Makefile b/max/windows/Makefile index 95324af0..55cc3766 100644 --- a/max/windows/Makefile +++ b/max/windows/Makefile @@ -4,7 +4,7 @@ SRCDIR = ../../src SRC = $(SRCDIR)/mdeGranular~.c $(SRCDIR)/mdeGranular~maxmsp.c # MaxMSP SDK Setup -C74SUPPORT = ../sdk/source/c74support +C74SUPPORT = ../sdk/source/max-sdk-base/c74support # Compiler / Linker Setup CC = gcc From 803a93eb6d088664a81e77103cadc84a34c3df70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9-Maurice=20Hanne?= <9755720+cieldeville@users.noreply.github.com> Date: Mon, 11 Dec 2023 23:34:46 +0100 Subject: [PATCH 4/6] Updated checkout and upload-artifact action versions --- .github/workflows/max-macos.yml | 4 ++-- .github/workflows/max-windows.yml | 6 +++--- .github/workflows/pd-linux.yml | 6 +++--- .github/workflows/pd-macos.yml | 6 +++--- .github/workflows/pd-windows.yml | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/max-macos.yml b/.github/workflows/max-macos.yml index fc77e758..5f48dc50 100644 --- a/.github/workflows/max-macos.yml +++ b/.github/workflows/max-macos.yml @@ -13,7 +13,7 @@ jobs: runs-on: macos-latest steps: - name: Check out mdeGranular - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'mde' submodules: 'recursive' @@ -34,7 +34,7 @@ jobs: mv mdeGranular~.mxo/ temp/ mv temp/ mdeGranular~.mxo/ - name: Upload Binaries - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mdeGranular~.mxo path: ${{ github.workspace }}/mde/max/cmake/build/Release/mdeGranular~.mxo \ No newline at end of file diff --git a/.github/workflows/max-windows.yml b/.github/workflows/max-windows.yml index 25be62e2..d110d219 100644 --- a/.github/workflows/max-windows.yml +++ b/.github/workflows/max-windows.yml @@ -23,13 +23,13 @@ jobs: steps: - name: Setup MSYS2 - uses: msys2/setup-msys2@v2 + uses: msys2/setup-msys2@v4 with: msystem: MINGW64 update: true install: git mingw-w64-x86_64-toolchain base-devel - name: Check out mdeGranular - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'mde' submodules: 'recursive' @@ -38,7 +38,7 @@ jobs: cd $GITHUB_WORKSPACE/mde/max/windows make - name: Upload Binaries - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mdeGranular~.mxe64 path: ${{ github.workspace }}/mde/max/windows/mdeGranular~.mxe64 \ No newline at end of file diff --git a/.github/workflows/pd-linux.yml b/.github/workflows/pd-linux.yml index 12f9a705..97f51c10 100644 --- a/.github/workflows/pd-linux.yml +++ b/.github/workflows/pd-linux.yml @@ -13,12 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out Pure-Data - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: 'pure-data/pure-data' path: 'pd' - name: Check out mdeGranular - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'mde' - name: Install system libraries @@ -35,7 +35,7 @@ jobs: cd $GITHUB_WORKSPACE/mde/pd make - name: Upload Binaries - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mdeGranular~.pd_linux path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_linux \ No newline at end of file diff --git a/.github/workflows/pd-macos.yml b/.github/workflows/pd-macos.yml index 2e285bef..70d9a15e 100644 --- a/.github/workflows/pd-macos.yml +++ b/.github/workflows/pd-macos.yml @@ -13,12 +13,12 @@ jobs: runs-on: macos-latest steps: - name: Check out Pure-Data - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: 'pure-data/pure-data' path: 'pd' - name: Check out mdeGranular - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'mde' - name: Install system libraries @@ -35,7 +35,7 @@ jobs: cd $GITHUB_WORKSPACE/mde/pd make - name: Upload Binaries - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mdeGranular~.pd_darwin path: ${{ github.workspace }}/mde/pd/mdeGranular~.pd_darwin \ No newline at end of file diff --git a/.github/workflows/pd-windows.yml b/.github/workflows/pd-windows.yml index 6ba6c12c..66a9a183 100644 --- a/.github/workflows/pd-windows.yml +++ b/.github/workflows/pd-windows.yml @@ -34,12 +34,12 @@ jobs: msys/autoconf msys/automake-wrapper - name: Check out Pure-Data - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: 'pure-data/pure-data' path: 'pd' - name: Check out mdeGranular - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'mde' - name: Build and Install Pure-Data @@ -54,7 +54,7 @@ jobs: cd $GITHUB_WORKSPACE/mde/pd make - name: Upload Binaries - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mdeGranular~.dll path: ${{ github.workspace }}/mde/pd/mdeGranular~.dll \ No newline at end of file From 87262c06676daf5d30f36bb5b3476dc711db00ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9-Maurice=20Hanne?= <9755720+cieldeville@users.noreply.github.com> Date: Mon, 11 Dec 2023 23:36:29 +0100 Subject: [PATCH 5/6] Accidentally changed msys version as well --- .github/workflows/max-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/max-windows.yml b/.github/workflows/max-windows.yml index d110d219..abc6eff7 100644 --- a/.github/workflows/max-windows.yml +++ b/.github/workflows/max-windows.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Setup MSYS2 - uses: msys2/setup-msys2@v4 + uses: msys2/setup-msys2@v2 with: msystem: MINGW64 update: true From 408beee8adf0949a9f4a8e927fdcbd3a24f90ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9-Maurice=20Hanne?= <9755720+cieldeville@users.noreply.github.com> Date: Tue, 12 Dec 2023 01:02:38 +0100 Subject: [PATCH 6/6] Added schedule to Build All workflow at a random time each month to ensure artifacts are always available --- .github/workflows/build-all.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index f36c4c49..964a428d 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -4,6 +4,8 @@ on: push: branches: - master + schedule: + - cron: '37 4 13 * *' workflow_dispatch: jobs: