Skip to content

Commit

Permalink
Update CI/CD pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
butchwarns committed Mar 2, 2024
1 parent d6a98e3 commit 1e427e2
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 50 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
submodules: recursive

- name: "build_debug.sh"
- name: "build_and_copy.sh debug"
run: |
./ci_cd/build_debug.sh
./ci_cd/build_and_copy.sh debug
shell: bash

- name: "validate.sh"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
with:
submodules: recursive

- name: "build_release.sh"
- name: "build_and_copy.sh release"
run: |
./ci_cd/build_release.sh
./ci_cd/build_and_copy.sh release
shell: bash

- name: "validate.sh"
Expand Down
4 changes: 2 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ scriptdir="$(dirname "$0")"
cd "$scriptdir"

# Check the first argument for build type
build_type="debug"
if [ -z "$1" ]; then
echo "No argument supplied. Please specify 'release' or 'debug'."
echo "(Defaulting to release build!)"
echo "(Defaulting to $build_type build!)"

build_type="release"
else
build_type=$1
fi
Expand Down
32 changes: 32 additions & 0 deletions ci_cd/build_and_copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#! /bin/bash -e

# Disable shell debug output
set +x

PLUGIN="utilities"

ROOT=$(cd "$(dirname "$0")/.."; pwd)
cd "$ROOT"

# Check the first argument for build type
if [ "$1" == "debug" ]; then
BUILD_TYPE="Debug"
elif [ "$1" == "release" ]; then
BUILD_TYPE="Release"
else
echo "Invalid argument. Please specify 'debug' or 'release'."
exit 1
fi

# Make folder for built plugins
cd "$ROOT/ci_cd"
rm -Rf bin
mkdir bin

# Build plugin
cd "$ROOT/build"
./build.sh $1

# Copy plugin builds to dedicated folder
cp -R "$ROOT/build/${PLUGIN}_artefacts/$BUILD_TYPE/AU/$PLUGIN.component" "$ROOT/ci_cd/bin"
cp -R "$ROOT/build/${PLUGIN}_artefacts/$BUILD_TYPE/VST3/$PLUGIN.vst3" "$ROOT/ci_cd/bin"
22 changes: 0 additions & 22 deletions ci_cd/build_debug.sh

This file was deleted.

22 changes: 0 additions & 22 deletions ci_cd/build_release.sh

This file was deleted.

0 comments on commit 1e427e2

Please # to comment.