diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-16 16:12:23 -0400 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-16 16:12:23 -0400 | 
| commit | 7e381d62a8e7f64f1bae96a8ef6b38316427381b (patch) | |
| tree | 34672f46fc194c2449aa3ee7ab4494b40b6791f0 | |
| parent | 3c0710172e03329004a2962e0313d883b143d3ad (diff) | |
Try determining which-branch once for all platforms.
| -rw-r--r-- | .github/workflows/build.yaml | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b301e88f48..a33b4a88c7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,6 +21,8 @@ jobs:      runs-on: ubuntu-latest      outputs:        release_run: ${{ steps.setvar.outputs.release_run }} +      branch:   ${{ steps.which-branch.outputs.branch }} +      relnotes: ${{ steps.which-branch.outputs.relnotes }}      env:        # Build with a tag like "Second_Life#abcdef0" to generate a release page        # (used for builds we are planning to deploy). @@ -35,6 +37,13 @@ jobs:          run: |            echo "release_run=$RELEASE_RUN" >> "$GITHUB_OUTPUT" +      - name: Determine source branch +        id: which-branch +        if: env.BUILD +        uses: secondlife/viewer-build-util/which-branch@v2 +        with: +          token: ${{ github.token }} +    build:      needs: setvar      strategy: @@ -52,8 +61,6 @@ jobs:      outputs:        viewer_channel: ${{ steps.build.outputs.viewer_channel }}        viewer_version: ${{ steps.build.outputs.viewer_version }} -      viewer_branch:  ${{ steps.which-branch.outputs.branch }} -      relnotes:       ${{ steps.which-branch.outputs.relnotes }}        imagename: ${{ steps.build.outputs.imagename }}      env:        AUTOBUILD_ADDRSIZE: 64 @@ -136,19 +143,12 @@ jobs:          if: env.BUILD && runner.os == 'Windows'          run: choco install nsis-unicode -      - name: Determine source branch -        id: which-branch -        if: env.BUILD -        uses: secondlife/viewer-build-util/which-branch@v2 -        with: -          token: ${{ github.token }} -        - name: Build          id: build          if: env.BUILD          shell: bash          env: -          AUTOBUILD_VCS_BRANCH: ${{ steps.which-branch.outputs.branch }} +          AUTOBUILD_VCS_BRANCH: ${{ needs.setvar.outputs.branch }}            RUNNER_OS: ${{ runner.os }}          run: |            # set up things the viewer's build.sh script expects @@ -437,7 +437,7 @@ jobs:              Build ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}              ${{ needs.build.outputs.viewer_channel }}              ${{ needs.build.outputs.viewer_version }} -            ${{ needs.build.outputs.relnotes }} +            ${{ needs.setvar.outputs.relnotes }}            prerelease: true            generate_release_notes: true            target_commitish: ${{ github.sha }} | 
