From 9e40afc239f41925a7e9784f07b3fac2858cc49c Mon Sep 17 00:00:00 2001 From: Ben Kuper Date: Wed, 9 Oct 2024 12:05:19 +0200 Subject: [PATCH] fix juce8 CI --- .github/actions/set-suffix/action.yml | 84 +++++++++++++++------------ .github/workflows/build.yml | 36 ------------ 2 files changed, 48 insertions(+), 72 deletions(-) diff --git a/.github/actions/set-suffix/action.yml b/.github/actions/set-suffix/action.yml index 5a33d91df..0157b93a7 100644 --- a/.github/actions/set-suffix/action.yml +++ b/.github/actions/set-suffix/action.yml @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5007831b1..bc86a69b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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: @@ -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: @@ -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: