Calculate stochas version more thoughtfully #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pull Request | |
on: | |
pull_request: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_plugin: | |
name: PR - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
- os: macos-latest | |
- os: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Prepare for JUCE | |
uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main | |
with: | |
os: ${{ runner.os }} | |
gccversion: 9 | |
- name: Calculate Version | |
bash: | | |
export SVER=`cat VERSION` | |
export GH=`git log -1 --format=%h` | |
export USEVER = ${SVER}.${GH}-nightly | |
echo "stochas_version=${USEVER}" >> $GITHUB_OUTPUT | |
- name: Build pull request version (macos) | |
if: runner.os == 'macOS' | |
run: | | |
STOCHAS_VERSION=${{ steps.vars.outputs.stochas_version }} ./scripts/mac-build.sh | |
- name: Build pull request version (linux) | |
if: runner.os == 'Linux' | |
run: | | |
STOCHAS_VERSION=${{ steps.vars.outputs.stochas_version }} ./scripts/linux-build.sh | |
- name: Build pull request version (windows) | |
if: runner.os == 'Windows' | |
run: | | |
STOCHAS_VERSION=${{ steps.vars.outputs.stochas_version }} ./scripts/win-build.sh | |