Skip to content

Commit bb1f77f

Browse files
committed
fix spack-packages commit
1 parent af23605 commit bb1f77f

File tree

6 files changed

+60
-16
lines changed

6 files changed

+60
-16
lines changed

.github/workflows/clingo.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
repository: spack/spack
4848
path: spack
4949
ref: 734c5db2121b01c373eed6538e452f18887e9e44
50+
- uses: actions/checkout@v4
51+
with:
52+
repository: spack/spack-packages
53+
path: spack-packages
54+
ref: a5b98e6b7e411a499f310e048c1d2e39d1004519
5055
# See https://github.com/actions/setup-python/issues/960
5156
- name: Workaround for broken Python versions from setup-python
5257
run: brew install gettext zlib
@@ -60,6 +65,7 @@ jobs:
6065
. spack/share/spack/setup-env.sh
6166
6267
spack config add "config:install_tree:padded_length:256"
68+
spack repo set --destination "$PWD/spack-packages" builtin
6369
6470
spack python clingo/install_clingo.py
6571
spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
@@ -88,13 +94,10 @@ jobs:
8894

8995
- uses: docker/setup-buildx-action@v3
9096

91-
- name: set base image
92-
run: |
93-
if [ '${{ matrix.python-version }}' = '3.14' ]; then
94-
echo "BASE_IMAGE=quay.io/pypa/manylinux2014:2025.11.11-1" >> $GITHUB_ENV
95-
else
96-
echo "BASE_IMAGE=ghcr.io/spack/manylinux2014:v2024-10-16" >> $GITHUB_ENV
97-
fi
97+
- if: ${{ matrix.python-version == '3.14' }}
98+
run: echo "BASE_IMAGE=quay.io/pypa/manylinux2014:2025.11.11-1" >> $GITHUB_ENV
99+
- if: ${{ matrix.python-version != '3.14' }}
100+
run: echo "BASE_IMAGE=ghcr.io/spack/manylinux2014:v2024-10-16" >> $GITHUB_ENV
98101

99102
- uses: docker/build-push-action@v5
100103
with:
@@ -127,10 +130,18 @@ jobs:
127130
repository: spack/spack
128131
path: spack
129132
ref: 734c5db2121b01c373eed6538e452f18887e9e44
133+
- uses: actions/checkout@v4
134+
with:
135+
repository: spack/spack-packages
136+
path: spack-packages
137+
ref: a5b98e6b7e411a499f310e048c1d2e39d1004519
130138

131139
- uses: actions/download-artifact@v6
132140

133-
- run: ./spack/bin/spack python ./generate_bootstrap_json.py clingo
141+
- run: |
142+
. spack/share/spack/setup-env.sh
143+
spack repo set --destination "$PWD/spack-packages" builtin
144+
spack python ./generate_bootstrap_json.py clingo
134145
135146
- uses: actions/upload-artifact@v5
136147
with:

.github/workflows/gnupg.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
repository: spack/spack-packages
4949
path: spack-packages
50-
ref: 4b8bb3514838ce9e8bbc2ca7f98e62dbd7100c63
50+
ref: a5b98e6b7e411a499f310e048c1d2e39d1004519
5151
- name: Install gnupg
5252
run: |
5353
brew install gawk perl
@@ -58,7 +58,7 @@ jobs:
5858
git -C spack-packages apply "$PWD/gnupg/patches/gnupg_macos.patch"
5959
6060
. spack/share/spack/setup-env.sh
61-
spack repo set --destination spack/var/spack/repos/builtin builtin
61+
spack repo set --destination "$PWD/spack-packages" builtin
6262
6363
rm -rf $(spack location -p podman)
6464
@@ -113,9 +113,17 @@ jobs:
113113
repository: spack/spack
114114
path: spack
115115
ref: 734c5db2121b01c373eed6538e452f18887e9e44
116+
- uses: actions/checkout@v4
117+
with:
118+
repository: spack/spack-packages
119+
path: spack-packages
120+
ref: a5b98e6b7e411a499f310e048c1d2e39d1004519
116121
- uses: actions/download-artifact@v6
117122

118-
- run: ./spack/bin/spack python ./generate_bootstrap_json.py gnupg
123+
- run: |
124+
. spack/share/spack/setup-env.sh
125+
spack repo set --destination "$PWD/spack-packages" builtin
126+
spack python ./generate_bootstrap_json.py gnupg
119127
120128
- uses: actions/upload-artifact@v5
121129
with:

.github/workflows/patchelf.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,17 @@ jobs:
6161
repository: spack/spack
6262
path: spack
6363
ref: 734c5db2121b01c373eed6538e452f18887e9e44
64+
- uses: actions/checkout@v4
65+
with:
66+
repository: spack/spack-packages
67+
path: spack-packages
68+
ref: a5b98e6b7e411a499f310e048c1d2e39d1004519
6469
- uses: actions/download-artifact@v6
6570

66-
- run: ./spack/bin/spack python ./generate_bootstrap_json.py patchelf
71+
- run: |
72+
. spack/share/spack/setup-env.sh
73+
spack repo set --destination "$PWD/spack-packages" builtin
74+
spack python ./generate_bootstrap_json.py patchelf
6775
6876
- uses: actions/upload-artifact@v5
6977
with:

clingo/Dockerfile.manylinux2014

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ ARG BASE_IMAGE=ghcr.io/spack/manylinux2014:v2024-10-16
22
FROM ${BASE_IMAGE}
33

44
ARG PYTHON_VERSION
5-
ARG GITHUB_ACTOR
6-
ARG GITHUB_TOKEN
75

86
RUN tar -C /opt/_internal -xvf /opt/_internal/static-libs-for-embedding-only.tar.xz
97

@@ -21,7 +19,13 @@ RUN mkdir /root/spack && \
2119
git fetch --depth=1 https://github.com/spack/spack.git 734c5db2121b01c373eed6538e452f18887e9e44:docker-reference && \
2220
git checkout docker-reference
2321

24-
# Set externals, locate compilers
22+
RUN mkdir /root/spack-packages && \
23+
cd /root/spack-packages && \
24+
git init . && \
25+
git fetch --depth=1 https://github.com/spack/spack-packages.git a5b98e6b7e411a499f310e048c1d2e39d1004519:docker-reference && \
26+
git checkout docker-reference
27+
28+
RUN spack repo set --destination /root/spack-packages builtin
2529
RUN spack external find bison cmake
2630
RUN spack compiler find
2731
RUN spack config add "config:install_tree:padded_length:256"

gnupg/Dockerfile.manylinux2014

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ RUN mkdir /root/spack && \
1414
git fetch --depth=1 https://github.com/spack/spack.git 734c5db2121b01c373eed6538e452f18887e9e44:docker-reference && \
1515
git checkout docker-reference
1616

17-
# Set externals, locate compilers
17+
RUN mkdir /root/spack-packages && \
18+
cd /root/spack-packages && \
19+
git init . && \
20+
git fetch --depth=1 https://github.com/spack/spack-packages.git a5b98e6b7e411a499f310e048c1d2e39d1004519:docker-reference && \
21+
git checkout docker-reference
22+
23+
RUN spack repo set --destination /root/spack-packages builtin
1824
RUN spack external find --not-buildable gawk perl
1925
RUN spack compiler find
2026
RUN spack config add "config:install_tree:padded_length:256"

patchelf/Dockerfile.manylinux2014

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ RUN mkdir /root/spack && \
1414
git fetch --depth=1 https://github.com/spack/spack.git 734c5db2121b01c373eed6538e452f18887e9e44:docker-reference && \
1515
git checkout docker-reference
1616

17+
RUN mkdir /root/spack-packages && \
18+
cd /root/spack-packages && \
19+
git init . && \
20+
git fetch --depth=1 https://github.com/spack/spack-packages.git a5b98e6b7e411a499f310e048c1d2e39d1004519:docker-reference && \
21+
git checkout docker-reference
22+
23+
RUN spack repo set --destination /root/spack-packages builtin
1724
RUN spack compiler find
1825
RUN spack config add "config:install_tree:padded_length:256"
1926

0 commit comments

Comments
 (0)