diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 3499d01..1731eea 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -29,13 +29,18 @@ jobs: gccversion: 9 - name: Build pull request version (macos) - if: ${{ matrix.os }} == 'macos-latest' + if: runner.os == 'macOS' run: | - STOCHAS_VERSION=NIGHTLY.PR ./scripts/mac-build.sh + STOCHAS_VERSION=0.0.0 ./scripts/mac-build.sh - - name: Build pull request version (others) - if: ${{ matrix.os }} != 'macos-latest' + - name: Build pull request version (linux) + if: runner.os == 'Linux' run: | - cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug - cmake --build ./build --config Debug --target bstep-products --parallel 3 + STOCHAS_VERSION=0.0.0 ./scripts/linux-build.sh + + - name: Build pull request version (windows) + if: runner.os == 'Windows' + run: | + cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug -DSTOCHAS_VERSION=0.0.0 + cmake --build ./build --config Debug --target stochas_Standalone --parallel 3 diff --git a/scripts/linux-build.sh b/scripts/linux-build.sh new file mode 100755 index 0000000..2ec2e6f --- /dev/null +++ b/scripts/linux-build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cmake -Bignore/build -DSTOCHAS_VERSION=${STOCHAS_VERSION} +cmake --build ignore/build --config Release +LINARCH=`uname -m` +GH=`git log -1 --format=%h` +NM=stochas-${STOCHAS_VERSION}.${GH}.linux-${LINARCH}.tgz +mkdir -p ignore/build/product/ +mkdir -p ignore/build/Stochas/Standalone +cp -r ignore/build/stochas_artefacts/VST3/* build/Stochas +cp -r ignore/build/stochas_artefacts/CLAP/* build/Stochas +cp -r ignore/build/stochas_artefacts/Standalone/* build/Stochas/Standalone +tar cvzf "ignore/build/product/${NM}" -C ignore/build Stochas \ No newline at end of file diff --git a/scripts/mac-build.sh b/scripts/mac-build.sh index 30fb715..0e37eed 100755 --- a/scripts/mac-build.sh +++ b/scripts/mac-build.sh @@ -6,19 +6,19 @@ if [ ! -f lib/sst-plugininfra/scripts/installer_mac/make_installer.sh ]; then die fi - cmake -Bignore/build -GNinja -DSTOCHAS_VERSION=${STOCHAS_VERSION} -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" - cmake --build ignore/build --target stochas_VST3 --config Release - cmake --build ignore/build --target stochas_CLAP --config Release - cmake --build ignore/build --target stochas_Standalone --config Release +cmake -Bignore/build -GNinja -DSTOCHAS_VERSION=${STOCHAS_VERSION} -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" +cmake --build ignore/build --target stochas_VST3 --config Release +cmake --build ignore/build --target stochas_CLAP --config Release +cmake --build ignore/build --target stochas_Standalone --config Release - mkdir -p ignore/mac_assets - cp -r ignore/build/stochas_artefacts/VST3/* ignore/mac_assets - cp -r ignore/build/stochas_artefacts/CLAP/* ignore/mac_assets - cp -r ignore/build/stochas_artefacts/Standalone/* ignore/mac_assets +mkdir -p ignore/mac_assets +cp -r ignore/build/stochas_artefacts/VST3/* ignore/mac_assets +cp -r ignore/build/stochas_artefacts/CLAP/* ignore/mac_assets +cp -r ignore/build/stochas_artefacts/Standalone/* ignore/mac_assets - cmake -GNinja -Bignore/build_au -DSTOCHAS_IS_SYNTH=FALSE -DSTOCHAS_VERSION=${STOCHAS_VERSION} -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" - cmake --build ignore/build_au --target stochas_AU --config Release - cp -r ignore/build_au/stochas_artefacts/AU/* ignore/mac_assets +cmake -GNinja -Bignore/build_au -DSTOCHAS_IS_SYNTH=FALSE -DSTOCHAS_VERSION=${STOCHAS_VERSION} -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" +cmake --build ignore/build_au --target stochas_AU --config Release +cp -r ignore/build_au/stochas_artefacts/AU/* ignore/mac_assets mkdir -p ignore/mac_installer lib/sst-plugininfra/scripts/installer_mac/make_installer.sh Stochas ignore/mac_assets resources ignore/mac_installer ${STOCHAS_VERSION}