File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 6262
6363 spack python clingo/install_clingo.py
6464 spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
65+
66+ spack mirror add \
67+ --oci-username-variable GITHUB_ACTOR \
68+ --oci-password-variable GITHUB_TOKEN \
69+ ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50
70+ spack buildcache push --unsigned oci clingo-bootstrap
71+
6572 - uses : actions/upload-artifact@v5
6673 with :
6774 name : clingo_binary_mirror-${{ matrix.runner[0] }}-${{ matrix.python-version }}
96103 tags : clingo:latest
97104 build-Args : |
98105 PYTHON_VERSION=${{ matrix.python-version }}
106+ GITHUB_ACTOR=${{ github.actor }}
107+ GITHUB_TOKEN=${{ github.token }}
99108
100109 - run : |
101110 docker create --name clingo-c --platform linux/${{ matrix.arch }} clingo
Original file line number Diff line number Diff line change @@ -29,3 +29,9 @@ RUN export PY_PATH=$(printf '%s' "$PYTHON_VERSION" | \
2929 && SPACK_PYTHON=/opt/python/${PY_PATH}/bin/python3 spack python install_clingo.py
3030
3131RUN spack buildcache push --unsigned ./binary-mirror $(spack --color=never find --hashes clingo-bootstrap)
32+
33+ RUN spack mirror add \
34+ --oci-username-variable GITHUB_ACTOR \
35+ --oci-password-variable GITHUB_TOKEN \
36+ ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50 && \
37+ spack buildcache push --unsigned oci clingo-bootstrap
Original file line number Diff line number Diff line change @@ -28,3 +28,9 @@ RUN export PY_PATH=$(printf '%s' "$PYTHON_VERSION" | \
2828 && SPACK_PYTHON=/opt/python/${PY_PATH}/bin/python3 spack python install_clingo.py
2929
3030RUN spack buildcache push --unsigned ./binary-mirror $(spack --color=never find --hashes clingo-bootstrap)
31+
32+ RUN spack mirror add \
33+ --oci-username-variable GITHUB_ACTOR \
34+ --oci-password-variable GITHUB_TOKEN \
35+ ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50 && \
36+ spack buildcache push --unsigned oci clingo-bootstrap
You can’t perform that action at this time.
0 commit comments