Skip to content

Commit

Permalink
Towards github actions, step 2 (#153)
Browse files Browse the repository at this point in the history
Move the azure build for linux into a script also. Next is windows into a script, then docker, then same into
release pipeline, then retire azure, but that's not today
  • Loading branch information
baconpaul authored Aug 21, 2024
1 parent c889bbc commit 9f2f4fb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 17 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions scripts/linux-build.sh
Original file line number Diff line number Diff line change
@@ -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
22 changes: 11 additions & 11 deletions scripts/mac-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9f2f4fb

Please sign in to comment.