Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,19 @@ jobs:
outputs: type=image,compression=zstd,compression-level=3,force-compression=true,oci-mediatypes=true
# No GitHub Actions cache: the image exceeds the 10 GB GHA cache cap. The persistent
# runner keeps BuildKit's local layer cache between builds.

# The artifact instructions pull this image without credentials, so fail if the
# package is not public. Visibility is set in the package settings on GitHub.
- name: Check that the image is public
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
env:
IMAGE: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
run: |
# An empty Docker configuration has no registry login.
DOCKER_CONFIG=$(mktemp -d)
export DOCKER_CONFIG
if ! docker manifest inspect "$IMAGE" > /dev/null; then
echo "::error::$IMAGE cannot be pulled anonymously. Make the package public: https://github.com/orgs/${GITHUB_REPOSITORY_OWNER}/packages/container/${GITHUB_REPOSITORY#*/}/settings"
exit 1
fi
echo "$IMAGE is publicly readable."
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ bash docker/run.sh polybench_cpu --cases gemm --target host --size MINI --output
```

The smoke test takes approximately 1–5 minutes and compares every output of
native and raised GEMM. If the registry requires authentication, use an
account with package access or
native and raised GEMM. To use other sources,
[build the image locally](#building-and-publishing-docker-images).

`docker/run.sh` accepts the same suites and options as `reproduce.py`. In the
Expand Down