Skip to content

Commit 62bbe80

Browse files
committed
Enable manylinux stack
1 parent 040e866 commit 62bbe80

File tree

1 file changed

+57
-57
lines changed

1 file changed

+57
-57
lines changed

.github/workflows/clingo.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
PYTHONUNBUFFERED: 1
2222

2323
jobs:
24-
macos_clingo:
24+
macos_build:
2525
runs-on: ${{ matrix.runner[0] }}
2626
strategy:
2727
matrix:
@@ -68,62 +68,62 @@ jobs:
6868
path: binary-mirror
6969

7070

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

128128
clingo_json:
129129
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)