From 338c18fcca6f70ad95364935078912e57346b69e Mon Sep 17 00:00:00 2001 From: James H Ball Date: Sun, 5 Jan 2025 16:19:45 +0000 Subject: [PATCH] Build free and premium version of osci-render --- .github/workflows/build.yaml | 7 ++++++- ci/build.sh | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 76a305b8..ce6aac69 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,6 +12,11 @@ jobs: strategy: matrix: project: [osci-render, sosci] + include: + - version: premium + project: [osci-render, sosci] + - version: free + project: [osci-render] steps: - name: Fix up git URLs run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig @@ -27,7 +32,7 @@ jobs: export OS="linux" source ./ci/setup-env.sh source ./ci/test.sh - source ./ci/build.sh "${{ matrix.project }}" + source ./ci/build.sh "${{ matrix.project }}" "${{ matrix.version }}" shell: bash - name: Upload Artifact diff --git a/ci/build.sh b/ci/build.sh index b5215675..580ea655 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -1,6 +1,13 @@ #!/bin/bash -e PLUGIN="$1" +VERSION="$2" + +# If we are on the free version, we need to disable the build flag SOSCI_FEATURES +if [ "$VERSION" = "free" ]; then + # Edit the jucer file to disable the SOSCI_FEATURES flag + sed -i '' 's/SOSCI_FEATURES=1/SOSCI_FEATURES=0/' "$ROOT/$PLUGIN.jucer" +fi # Resave jucer file RESAVE_COMMAND="$PROJUCER_PATH --resave '$ROOT/$PLUGIN.jucer'"