File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,17 @@ jobs:
5656 export PATH="$(brew --prefix bison):$PATH"
5757 . spack/share/spack/setup-env.sh
5858
59- rm -rf $(spack location -p pod man)
60-
6159 spack config add "config:install_tree:padded_length:256"
6260
6361 spack python clingo/install_clingo.py
6462 spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
63+
64+ spack mirror add \
65+ --oci-username-variable GITHUB_ACTOR \
66+ --oci-password-variable GITHUB_TOKEN \
67+ ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50
68+ spack buildcache push --unsigned ghcr clingo-bootstrap
69+
6570 - uses : actions/upload-artifact@v5
6671 with :
6772 name : clingo_binary_mirror-${{ matrix.runner[0] }}-${{ matrix.python-version }}
96101 tags : clingo:latest
97102 build-Args : |
98103 PYTHON_VERSION=${{ matrix.python-version }}
104+ GITHUB_ACTOR=${{ github.actor }}
105+ GITHUB_TOKEN=${{ github.token }}
99106
100107 - run : |
101108 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 ghcr 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 ghcr clingo-bootstrap
You can’t perform that action at this time.
0 commit comments