Skip to content

Commit

Permalink
Build free and premium version of osci-render
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshball committed Jan 5, 2025
1 parent 214dbbd commit 338c18f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]:"' >> ~/.gitconfig
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -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'"
Expand Down

0 comments on commit 338c18f

Please sign in to comment.