diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-15 15:57:50 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-15 15:57:50 -0400 |
commit | 9d30040dfe161e750a897065c16450478e740aa9 (patch) | |
tree | 0ab4be1cc3846e0cc65da5dd88183b1c690fd29d | |
parent | a4d2574df2af19f5baa57bf27b5c5f888b765ede (diff) |
Try to work around workflow YAML env setting limitation.
-rw-r--r-- | .github/workflows/build.yaml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3bf7964ba2..afac61cb1b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,7 +13,22 @@ env: RELEASE_RUN: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life') && 'Y' }} jobs: + # The whole point of the setvar job is that we want to reference global + # env.RELEASE_RUN in build.env, but a job.env can't directly reference the + # global env context. + setvar: + runs-on: ubuntu-latest + outputs: + release_run: ${{ steps.setvar.outputs.release_run }} + steps: + - name: Set Variable + id: setvar + shell: bash + run: | + echo "release_run=$RELEASE_RUN" >> "$GITHUB_OUTPUT" + build: + needs: setvar strategy: matrix: runner: [windows-large, macos-12-xl] @@ -49,7 +64,7 @@ jobs: BUGSPLAT_DB: ${{ matrix.Linden && 'SecondLife_Viewer_2018' || '' }} # Run BUILD steps for Release configuration. # Run BUILD steps for ReleaseOS configuration only for release runs. - BUILD: ${{ (matrix.Linden || env.RELEASE_RUN) && 'Y' || '' }} + BUILD: ${{ (matrix.Linden || needs.setvar.outputs.release_run) && 'Y' || '' }} build_coverity: false build_log_dir: ${{ github.workspace }}/.logs build_viewer: true |