|
21 | 21 | PYTHONUNBUFFERED: 1 |
22 | 22 |
|
23 | 23 | jobs: |
24 | | - macos_clingo: |
| 24 | + macos_build: |
25 | 25 | runs-on: ${{ matrix.runner[0] }} |
26 | 26 | strategy: |
27 | 27 | matrix: |
@@ -68,62 +68,62 @@ jobs: |
68 | 68 | path: binary-mirror |
69 | 69 |
|
70 | 70 |
|
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 |
127 | 127 |
|
128 | 128 | clingo_json: |
129 | 129 | runs-on: ubuntu-latest |
|
0 commit comments