Merge branch 'dev/sgillard/prim_tree_expand_update' into 'main' #95
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: | |
| # Remove unnecessary files and programs to avoid running out of disk space in the runner | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf \ | |
| /usr/local/aws-cli \ | |
| /usr/local/aws-sam-cli \ | |
| /usr/local/julia1.12.2 \ | |
| /usr/local/lib/android \ | |
| /usr/local/lib/heroku \ | |
| /usr/local/lib/node_modules \ | |
| /opt/hostedtoolcache/CodeQL \ | |
| /opt/hostedtoolcache/go \ | |
| /opt/hostedtoolcache/PyPy \ | |
| /opt/hostedtoolcache/node \ | |
| /usr/local/bin/oc \ | |
| /usr/local/share/chromium \ | |
| /usr/local/share/powershell \ | |
| /opt/az \ | |
| /opt/microsoft/msedge \ | |
| /opt/microsoft/powershell | |
| sudo apt purge -y firefox google-chrome-stable microsoft-edge-stable | |
| - 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 }} |