Update to Spack v1.0.2 #187
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: clingo | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v0.** | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: clingo-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| SPACK_COLOR: always | |
| SPACK_BACKTRACE: please | |
| PYTHONUNBUFFERED: 1 | |
| jobs: | |
| macos_clingo: | |
| runs-on: ${{ matrix.runner[0] }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| # runner + macOS deployment target | |
| runner: [["macos-13", "10.13"], ["macos-14", "11"]] | |
| exclude: | |
| - python-version: "3.6" | |
| runner: ["macos-14", "11"] | |
| - python-version: "3.7" | |
| runner: ["macos-14", "11"] | |
| env: | |
| MACOSX_DEPLOYMENT_TARGET: ${{ matrix.runner[1] }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: spack/spack | |
| path: spack | |
| ref: 734c5db2121b01c373eed6538e452f18887e9e44 | |
| # See https://github.com/actions/setup-python/issues/960 | |
| - name: Workaround for broken Python versions from setup-python | |
| run: brew install gettext zlib | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install clingo-bootstrap | |
| run: | | |
| pip install --upgrade pip | |
| export PATH="$(brew --prefix bison):$PATH" | |
| . spack/share/spack/setup-env.sh | |
| rm -rf $(spack location -p podman) | |
| spack config add "config:install_tree:padded_length:256" | |
| spack python clingo/install_clingo.py | |
| spack buildcache push --unsigned ./binary-mirror clingo-bootstrap | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: clingo_binary_mirror-${{ matrix.runner[0] }}-${{ matrix.runner[1] }}-${{ matrix.python-version }} | |
| path: binary-mirror | |
| # manylinux2014: | |
| # runs-on: ["self-hosted", "Linux"] | |
| # outputs: | |
| # spack_manylinux_tag: ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }} | |
| # permissions: | |
| # packages: write | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # # Setup tags to be used for docker images | |
| # - uses: docker/metadata-action@v5 | |
| # id: docker_meta | |
| # with: | |
| # images: ghcr.io/${{ github.repository_owner }}/clingo_manylinux2014 | |
| # # Login to Github Packages | |
| # - uses: docker/login-action@v3 | |
| # with: | |
| # registry: ghcr.io | |
| # username: ${{ github.actor }} | |
| # password: ${{ secrets.GITHUB_TOKEN }} | |
| # - uses: docker/setup-qemu-action@v3 | |
| # id: qemu | |
| # with: | |
| # platforms: linux/ppc64le,linux/arm64 | |
| # - uses: docker/setup-buildx-action@v3 | |
| # # Build and eventually push to registry | |
| # - uses: docker/build-push-action@v5 | |
| # with: | |
| # file: ./clingo/Dockerfile.manylinux2014 | |
| # platforms: linux/arm64,linux/ppc64le,linux/amd64 | |
| # cache-from: | | |
| # ghcr.io/${{ github.repository_owner }}/clingo_manylinux2014:main | |
| # ${{ steps.docker_meta.outputs.tags }} | |
| # cache-to: type=inline | |
| # pull: ${{ github.event_name == 'pull_request' }} | |
| # push: true | |
| # tags: ${{ steps.docker_meta.outputs.tags }} | |
| # labels: ${{ steps.docker_meta.outputs.labels }} | |
| # upload-manylinux2014: | |
| # runs-on: ubuntu-latest | |
| # needs: [ manylinux2014 ] | |
| # env: | |
| # SPACK_MANYLINUX2014_TAG: ${{ needs.manylinux2014.outputs.spack_manylinux_tag }} | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - run: ./copy_mirror_manylinux2014.sh | |
| # - uses: actions/upload-artifact@v5 | |
| # with: | |
| # name: clingo_binary_mirror-ubuntu-latest | |
| # path: binary-mirror | |
| clingo_json: | |
| runs-on: ubuntu-latest | |
| needs: [ macos_clingo ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: spack/spack | |
| path: spack | |
| ref: 734c5db2121b01c373eed6538e452f18887e9e44 | |
| - uses: actions/download-artifact@v3 | |
| - run: ./spack/bin/spack python ./generate_bootstrap_json.py clingo | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: clingo_manifest | |
| path: clingo.json |