Merge branch 'dev/ptrottier/comfyui_add_to_queue' into 'main' #66
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: Download RTX Remix Toolkit Package | |
| run-name: '${{ github.event.client_payload.commit_title }}' | |
| on: | |
| repository_dispatch: | |
| types: [trigger-toolkit-download] | |
| jobs: | |
| rtx-remix-toolkit-windows-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.client_payload.commit_sha || github.sha }} | |
| - name: Download package | |
| run: | | |
| # Read version from VERSION.md | |
| VERSION=$(cat VERSION.md | head -n 1 | xargs) | |
| # Get branch name and commit SHA from client payload or fallback to defaults | |
| BRANCH_NAME="${{ github.event.client_payload.ref || github.ref_name }}" | |
| COMMIT_SHA="${{ github.event.client_payload.commit_sha || github.sha }}" | |
| SHORT_SHA="${COMMIT_SHA:0:8}" | |
| # Construct the filename | |
| FILENAME="rtx_remix@${VERSION}+${BRANCH_NAME}.${SHORT_SHA}.gl.windows-x86_64.release" | |
| echo "Downloading package: $FILENAME" | |
| echo "Version: $VERSION, Branch: $BRANCH_NAME, SHA: $SHORT_SHA" | |
| # Create project.xml for packman pull | |
| cat > project.xml << EOF | |
| <project toolsVersion="7.6"> | |
| <dependency name="rtx_remix" copyPath="_artifacts/${FILENAME}"> | |
| <package name="rtx_remix" version="${VERSION}+${BRANCH_NAME}.${SHORT_SHA}.gl.windows-x86_64.release" /> | |
| </dependency> | |
| </project> | |
| EOF | |
| # Download from packman using project.xml | |
| if ./tools/packman/packman pull project.xml; then | |
| echo "✅ Successfully downloaded $FILENAME" | |
| echo "SHOULD_UPLOAD=true" >> $GITHUB_ENV | |
| echo "FILENAME=$FILENAME" >> $GITHUB_ENV | |
| else | |
| echo "❌ Failed to download $FILENAME from packman" | |
| echo "SHOULD_UPLOAD=false" >> $GITHUB_ENV | |
| exit 1 | |
| fi | |
| - name: Upload artifact | |
| if: env.SHOULD_UPLOAD == 'true' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.FILENAME }} | |
| path: _artifacts/${{ env.FILENAME }} |