Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,35 @@ env:
hashCommand: "sha256sum"

jobs:
check_and_prepare:
runs-on: ubuntu-latest
outputs:
unity_version: ${{ steps.set_outputs.outputs.unity_version }}
steps:
- id: set_outputs
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "unity_version=${{ github.event.inputs.unity_version }}" >> $GITHUB_OUTPUT
else
# inputs are not available for non "workflow_dispatch" events. Therefore, set default value here.
echo "unity_version=2019" >> $GITHUB_OUTPUT
fi

- name: Print output
run: |
echo outputs.unity_version : ${{ steps.set_outputs.outputs.unity_version }}

build_macos:
name: build-macos-unity${{ inputs.unity_version}}
name: build-macos-unity${{ needs.check_and_prepare.outputs.unity_version }}
needs: [check_and_prepare]
uses: ./.github/workflows/build_macos.yaml
with:
unity_version: ${{ inputs.unity_version}}
unity_version: ${{ needs.check_and_prepare.outputs.unity_version }}

finalizing:
# Only compute SHA hash for macOS build
name: finalizing-macOS-unity${{ inputs.unity_version}}
needs: [build_macos]
name: finalizing-macOS-unity${{ needs.check_and_prepare.outputs.unity_version }}
needs: [check_and_prepare, build_macos]
runs-on: ubuntu-latest
steps:
- name: Fetch All builds
Expand Down