Build free and premium version of osci-render

pre-release-3
James H Ball 2025-01-05 16:19:45 +00:00
rodzic 214dbbdffd
commit 338c18fcca
2 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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'"