Test Build (Manual) #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Build (Manual) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| platform: | |
| description: 'Platform to build' | |
| required: true | |
| type: choice | |
| options: | |
| - all | |
| - windows | |
| - macos-intel | |
| - macos-arm | |
| - dazpy | |
| default: 'all' | |
| sdk-version: | |
| description: 'DAZ Studio SDK version to build (ignored for dazpy)' | |
| required: false | |
| type: choice | |
| options: | |
| - both | |
| - '4' | |
| - '6' | |
| default: 'both' | |
| configuration: | |
| description: 'Build configuration' | |
| required: false | |
| type: choice | |
| options: | |
| - Release | |
| - Debug | |
| default: 'Release' | |
| jobs: | |
| build-windows-ds4: | |
| name: Build Windows Plugin (DS4) | |
| if: (inputs.platform == 'all' || inputs.platform == 'windows') && (inputs.sdk-version == 'both' || inputs.sdk-version == '4') | |
| uses: ./.github/workflows/build-windows.yml | |
| with: | |
| configuration: ${{ inputs.configuration }} | |
| sdk-version: '4' | |
| secrets: | |
| sdk-repo-token: ${{ secrets.SDK_REPO_TOKEN }} | |
| build-windows-ds6: | |
| name: Build Windows Plugin (DS6) | |
| if: (inputs.platform == 'all' || inputs.platform == 'windows') && (inputs.sdk-version == 'both' || inputs.sdk-version == '6') | |
| uses: ./.github/workflows/build-windows.yml | |
| with: | |
| configuration: ${{ inputs.configuration }} | |
| sdk-version: '6' | |
| secrets: | |
| sdk-repo-token: ${{ secrets.SDK_REPO_TOKEN }} | |
| build-macos-intel-ds4: | |
| name: Build macOS Intel Plugin (DS4) | |
| if: (inputs.platform == 'all' || inputs.platform == 'macos-intel') && (inputs.sdk-version == 'both' || inputs.sdk-version == '4') | |
| uses: ./.github/workflows/build-macos.yml | |
| with: | |
| architecture: x86_64 | |
| configuration: ${{ inputs.configuration }} | |
| sdk-version: '4' | |
| secrets: | |
| sdk-repo-token: ${{ secrets.SDK_REPO_TOKEN }} | |
| build-macos-intel-ds6: | |
| name: Build macOS Intel Plugin (DS6) | |
| if: (inputs.platform == 'all' || inputs.platform == 'macos-intel') && (inputs.sdk-version == 'both' || inputs.sdk-version == '6') | |
| uses: ./.github/workflows/build-macos.yml | |
| with: | |
| architecture: x86_64 | |
| configuration: ${{ inputs.configuration }} | |
| sdk-version: '6' | |
| secrets: | |
| sdk-repo-token: ${{ secrets.SDK_REPO_TOKEN }} | |
| build-macos-arm-ds4: | |
| name: Build macOS Apple Silicon Plugin (DS4) | |
| if: (inputs.platform == 'all' || inputs.platform == 'macos-arm') && (inputs.sdk-version == 'both' || inputs.sdk-version == '4') | |
| uses: ./.github/workflows/build-macos.yml | |
| with: | |
| architecture: arm64 | |
| configuration: ${{ inputs.configuration }} | |
| sdk-version: '4' | |
| secrets: | |
| sdk-repo-token: ${{ secrets.SDK_REPO_TOKEN }} | |
| build-macos-arm-ds6: | |
| name: Build macOS Apple Silicon Plugin (DS6) | |
| if: (inputs.platform == 'all' || inputs.platform == 'macos-arm') && (inputs.sdk-version == 'both' || inputs.sdk-version == '6') | |
| uses: ./.github/workflows/build-macos.yml | |
| with: | |
| architecture: arm64 | |
| configuration: ${{ inputs.configuration }} | |
| sdk-version: '6' | |
| secrets: | |
| sdk-repo-token: ${{ secrets.SDK_REPO_TOKEN }} | |
| build-dazpy: | |
| name: Build dazpy Wheel | |
| if: inputs.platform == 'all' || inputs.platform == 'dazpy' | |
| uses: ./.github/workflows/build-dazpy.yml | |
| summary: | |
| name: Build Summary | |
| needs: | |
| - build-windows-ds4 | |
| - build-windows-ds6 | |
| - build-macos-intel-ds4 | |
| - build-macos-intel-ds6 | |
| - build-macos-arm-ds4 | |
| - build-macos-arm-ds6 | |
| - build-dazpy | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check build results | |
| run: | | |
| echo "## Build Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "Platform: ${{ inputs.platform }}" >> $GITHUB_STEP_SUMMARY | |
| echo "SDK version: ${{ inputs.sdk-version }}" >> $GITHUB_STEP_SUMMARY | |
| echo "Configuration: ${{ inputs.configuration }}" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "### Results" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| if [ "${{ needs.build-windows-ds4.result }}" != "skipped" ]; then | |
| echo "- Windows (DS4): ${{ needs.build-windows-ds4.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "${{ needs.build-windows-ds6.result }}" != "skipped" ]; then | |
| echo "- Windows (DS6): ${{ needs.build-windows-ds6.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "${{ needs.build-macos-intel-ds4.result }}" != "skipped" ]; then | |
| echo "- macOS Intel (DS4): ${{ needs.build-macos-intel-ds4.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "${{ needs.build-macos-intel-ds6.result }}" != "skipped" ]; then | |
| echo "- macOS Intel (DS6): ${{ needs.build-macos-intel-ds6.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "${{ needs.build-macos-arm-ds4.result }}" != "skipped" ]; then | |
| echo "- macOS Apple Silicon (DS4): ${{ needs.build-macos-arm-ds4.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "${{ needs.build-macos-arm-ds6.result }}" != "skipped" ]; then | |
| echo "- macOS Apple Silicon (DS6): ${{ needs.build-macos-arm-ds6.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "${{ needs.build-dazpy.result }}" != "skipped" ]; then | |
| echo "- dazpy: ${{ needs.build-dazpy.result }}" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "Artifacts are available for download from the workflow run page." >> $GITHUB_STEP_SUMMARY |