Skip to content

Download Runtimes

Download Runtimes #1

Workflow file for this run

name: Download Runtimes
on:
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
download-runtimes:
name: Download Runtime Binaries
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Build cdprun binary
run: make build-only
- name: Set up ORAS
run: |
go install oras.land/oras/cmd/oras@v1.3.0
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
oras version
- name: Login to GHCR
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | oras login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Test ORAS upload and download
run: |
echo "Testing ORAS functionality..."
echo "test-content-$(date +%s)" > oras-test.txt
echo "Created test file with content: $(cat oras-test.txt)"
echo "Pushing test file to GHCR..."
oras push ghcr.io/${{ github.repository }}/oras-test:latest ./oras-test.txt
echo "Removing local test file..."
rm oras-test.txt
echo "Pulling test file from GHCR..."
oras pull ghcr.io/${{ github.repository }}/oras-test:latest -o .
echo "Verifying test file was downloaded..."
if [ -f oras-test.txt ]; then
echo " ORAS test successful! Downloaded content: $(cat oras-test.txt)"
rm oras-test.txt
else
echo "ORAS test failed - file not downloaded"
exit 1
fi