Skip to content

Commit

Permalink
fix juce8 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Oct 9, 2024
1 parent e0edd02 commit 9e40afc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 72 deletions.
84 changes: 48 additions & 36 deletions .github/actions/set-suffix/action.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,48 @@
name: 'Set Variables'
description: 'Set app version suffix'
inputs:
os:
description: 'OS designator'
required: true
outputs:
suffix:
description: 'Suffix for the compiled version'
value: ${{ steps.main.outputs.suffix }}

config:
description: 'Config to use (Win only)'
value: ${{ steps.main.outputs.config }}

dep:
description: 'Dependency file suffix'
value: ${{ steps.main.outputs.dep }}

runs:
using: "composite"
steps:
- id: main
run: |
if [[ $GITHUB_REF == *"refs/tags/"* ]]
then
echo "Found Tag : ${GITHUB_REF#refs/tags/}"
echo "suffix=${{ inputs.os }}-${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
echo "config=Release" >> $GITHUB_OUTPUT
echo "dep=release" >> $GITHUB_OUTPUT
else
echo "suffix=${{ inputs.os }}-bleedingedge" >> $GITHUB_OUTPUT
echo "config=Release" >> $GITHUB_OUTPUT
echo "dep=release" >> $GITHUB_OUTPUT
fi
shell: bash
name: 'Set Variables'
description: 'Set app version suffix'
inputs:
os:
description: 'OS designator'
required: true
outputs:
suffix:
description: 'Suffix for the compiled version'
value: ${{ steps.main.outputs.suffix }}

config:
description: 'Config to use (Win only)'
value: ${{ steps.main.outputs.config }}

dep:
description: 'Dependency file suffix'
value: ${{ steps.main.outputs.dep }}

runs:
using: "composite"
steps:
- name: Check Tag
id: main
run: |
if [[ $GITHUB_REF == *"refs/tags/"* ]]
then
echo "Found Tag : ${GITHUB_REF#refs/tags/}"
echo "suffix=${{ inputs.os }}-${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
echo "config=Release" >> $GITHUB_OUTPUT
echo "dep=release" >> $GITHUB_OUTPUT
else
echo "suffix=${{ inputs.os }}-bleedingedge" >> $GITHUB_OUTPUT
echo "config=Release" >> $GITHUB_OUTPUT
echo "dep=release" >> $GITHUB_OUTPUT
fi
shell: bash

- name: Set JUCE branch
run: |
if [[ "${{ github.ref }}" == "refs/heads/juce8" ]]
then
echo "Using JUCE 8 branch"
echo "juce-branch=juce8_local" >> $GITHUB_ENV
else
echo "juce-branch=develop-local" >> $GITHUB_ENV
fi
shell: bash
36 changes: 0 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ jobs:
with:
submodules: 'recursive'

- name: Set JUCE branch
run: |
if [[ "${{ github.ref }}" == "refs/heads/juce8" ]]
then
echo "juce-branch=juce8_local" >> $GITHUB_ENV
else
echo "juce-branch=develop-local" >> $GITHUB_ENV
fi
- name: Checkout JUCE
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -121,15 +112,6 @@ jobs:
with:
submodules: 'recursive'

- name: Set JUCE branch
run: |
if [[ "${{ github.ref }}" == "refs/heads/juce8" ]]
then
echo "juce-branch=juce8_local" >> $GITHUB_ENV
else
echo "juce-branch=develop-local" >> $GITHUB_ENV
fi
- name: Checkout JUCE
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -195,15 +177,6 @@ jobs:
with:
submodules: 'recursive'

- name: Set JUCE branch
run: |
if [[ "${{ github.ref }}" == "refs/heads/juce8" ]]
then
echo "juce-branch=juce8_local" >> $GITHUB_ENV
else
echo "juce-branch=develop-local" >> $GITHUB_ENV
fi
- name: Checkout JUCE
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -298,15 +271,6 @@ jobs:
with:
submodules: 'recursive'

- name: Set JUCE branch
run: |
if [[ "${{ github.ref }}" == "refs/heads/juce8" ]]
then
echo "juce-branch=juce8_local" >> $GITHUB_ENV
else
echo "juce-branch=develop-local" >> $GITHUB_ENV
fi
- name: Checkout JUCE
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 9e40afc

Please sign in to comment.