Skip to content

Commit f446353

Browse files
committed
Fix unique paths for gnupg cache
1 parent 7172601 commit f446353

File tree

2 files changed

+57
-59
lines changed

2 files changed

+57
-59
lines changed

.github/workflows/gnupg.yml

Lines changed: 56 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -69,64 +69,64 @@ jobs:
6969
spack buildcache push --unsigned ./binary-mirror gnupg
7070
- uses: actions/upload-artifact@v5
7171
with:
72-
name: gnupg_binary_mirror
72+
name: gnupg_binary_mirror-${{ matrix.runner[0] }}-${{ matrix.runner[1] }}-${{ matrix.python-version }}
7373
path: binary-mirror
7474

75-
manylinux2014:
76-
runs-on: ["self-hosted", "Linux"]
77-
outputs:
78-
spack_manylinux_tag: ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }}
79-
80-
steps:
81-
- uses: actions/checkout@v4
82-
83-
# Setup tags to be used for docker images
84-
- uses: docker/metadata-action@v5
85-
id: docker_meta
86-
with:
87-
images: ghcr.io/${{ github.repository_owner }}/gnupg_manylinux2014
88-
89-
# Login to Github Packages
90-
- uses: docker/login-action@v3
91-
with:
92-
registry: ghcr.io
93-
username: ${{ github.repository_owner }}
94-
password: ${{ secrets.GITHUB_TOKEN }}
95-
96-
- uses: docker/setup-qemu-action@v3
97-
id: qemu
98-
with:
99-
platforms: linux/ppc64le,linux/arm64,linux/amd64
100-
101-
- uses: docker/setup-buildx-action@v3
102-
103-
# Build and eventually push to registry
104-
- uses: docker/build-push-action@v5
105-
with:
106-
file: ./gnupg/Dockerfile.manylinux2014
107-
platforms: linux/arm64,linux/ppc64le,linux/amd64
108-
pull: ${{ github.event_name == 'pull_request' }}
109-
cache-from: |
110-
ghcr.io/${{ github.repository_owner }}/gnupg_manylinux2014:main
111-
${{ steps.docker_meta.outputs.tags }}
112-
cache-to: type=inline
113-
push: true
114-
tags: ${{ steps.docker_meta.outputs.tags }}
115-
labels: ${{ steps.docker_meta.outputs.labels }}
116-
117-
upload-manylinux2014:
118-
runs-on: ubuntu-latest
119-
needs: [ manylinux2014 ]
120-
env:
121-
SPACK_MANYLINUX2014_TAG: ${{ needs.manylinux2014.outputs.spack_manylinux_tag }}
122-
123-
steps:
124-
- uses: actions/checkout@v4
125-
- run: ./copy_mirror_manylinux2014.sh
126-
- uses: actions/upload-artifact@v5
127-
with:
128-
name: gnupg_binary_mirror
129-
path: binary-mirror
75+
# manylinux2014:
76+
# runs-on: ["self-hosted", "Linux"]
77+
# outputs:
78+
# spack_manylinux_tag: ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }}
79+
80+
# steps:
81+
# - uses: actions/checkout@v4
82+
83+
# # Setup tags to be used for docker images
84+
# - uses: docker/metadata-action@v5
85+
# id: docker_meta
86+
# with:
87+
# images: ghcr.io/${{ github.repository_owner }}/gnupg_manylinux2014
88+
89+
# # Login to Github Packages
90+
# - uses: docker/login-action@v3
91+
# with:
92+
# registry: ghcr.io
93+
# username: ${{ github.repository_owner }}
94+
# password: ${{ secrets.GITHUB_TOKEN }}
95+
96+
# - uses: docker/setup-qemu-action@v3
97+
# id: qemu
98+
# with:
99+
# platforms: linux/ppc64le,linux/arm64,linux/amd64
100+
101+
# - uses: docker/setup-buildx-action@v3
102+
103+
# # Build and eventually push to registry
104+
# - uses: docker/build-push-action@v5
105+
# with:
106+
# file: ./gnupg/Dockerfile.manylinux2014
107+
# platforms: linux/arm64,linux/ppc64le,linux/amd64
108+
# pull: ${{ github.event_name == 'pull_request' }}
109+
# cache-from: |
110+
# ghcr.io/${{ github.repository_owner }}/gnupg_manylinux2014:main
111+
# ${{ steps.docker_meta.outputs.tags }}
112+
# cache-to: type=inline
113+
# push: true
114+
# tags: ${{ steps.docker_meta.outputs.tags }}
115+
# labels: ${{ steps.docker_meta.outputs.labels }}
116+
117+
# upload-manylinux2014:
118+
# runs-on: ubuntu-latest
119+
# needs: [ manylinux2014 ]
120+
# env:
121+
# SPACK_MANYLINUX2014_TAG: ${{ needs.manylinux2014.outputs.spack_manylinux_tag }}
122+
123+
# steps:
124+
# - uses: actions/checkout@v4
125+
# - run: ./copy_mirror_manylinux2014.sh
126+
# - uses: actions/upload-artifact@v5
127+
# with:
128+
# name: gnupg_binary_mirror
129+
# path: binary-mirror
130130

131131
gnupg_json:
132132
runs-on: ubuntu-latest
@@ -139,8 +139,6 @@ jobs:
139139
path: spack
140140
ref: 734c5db2121b01c373eed6538e452f18887e9e44
141141
- uses: actions/download-artifact@v3
142-
with:
143-
name: gnupg_binary_mirror
144142
- run: ./spack/bin/spack python ./generate_bootstrap_json.py gnupg
145143
- uses: actions/upload-artifact@v5
146144
with:

generate_bootstrap_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run(pkg: str, deps=dt.NONE, python: bool = False):
3434
name = "clingo-bootstrap" if pkg == "clingo" else pkg
3535
shas = {
3636
tarball_hash(tarball): sha256(tarball)
37-
for tarball in glob.glob("./clingo_binary_mirror*/**/*.spack", recursive=True)
37+
for tarball in glob.glob(f"./{pkg}_binary_mirror*/**/*.spack", recursive=True)
3838
}
3939

4040
specs = [

0 commit comments

Comments
 (0)