Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 64 additions & 62 deletions .github/workflows/clingo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
tags:
tags:
- v0.**
pull_request:
branches:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
repository: spack/spack
path: spack
ref: d36452cf4e70fa1da8b9db43921850872b82ced9
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
Expand All @@ -51,92 +51,94 @@ jobs:
- name: Install clingo-bootstrap
run: |
pip install --upgrade pip
brew install bison
export PATH="$(brew --prefix bison):$PATH"
. spack/share/spack/setup-env.sh
spack external find --not-buildable cmake bison

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@v3
- uses: actions/upload-artifact@v5
with:
name: clingo_binary_mirror
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
# 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
# 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
# # 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 }}
# # 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-qemu-action@v3
# id: qemu
# with:
# platforms: linux/ppc64le,linux/arm64

- uses: docker/setup-buildx-action@v3
# - 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@v3
with:
name: clingo_binary_mirror
path: binary-mirror
# # 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: [ upload-manylinux2014, macos_clingo ]
needs: [ macos_clingo ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: spack/spack
path: spack
ref: d36452cf4e70fa1da8b9db43921850872b82ced9
- uses: actions/download-artifact@v3
with:
name: clingo_binary_mirror
ref: 734c5db2121b01c373eed6538e452f18887e9e44

- uses: actions/download-artifact@v6

- run: ./spack/bin/spack python ./generate_bootstrap_json.py clingo
- uses: actions/upload-artifact@v3

- uses: actions/upload-artifact@v5
with:
name: clingo_manifest
path: clingo.json
142 changes: 76 additions & 66 deletions .github/workflows/gnupg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
tags:
tags:
- v0.**
pull_request:
branches:
Expand Down Expand Up @@ -41,98 +41,108 @@ jobs:
with:
repository: spack/spack
path: spack
ref: d36452cf4e70fa1da8b9db43921850872b82ced9
ref: 734c5db2121b01c373eed6538e452f18887e9e44
- uses: actions/checkout@v4
with:
repository: spack/spack-packages
path: spack-packages
ref: 4b8bb3514838ce9e8bbc2ca7f98e62dbd7100c63
- name: Install gnupg
run: |
brew install gawk perl

# Disables internationalization to avoid linking to
# libintl on MacOS, since that will make the binary
# non portable
git -C spack apply "$PWD/gnupg/patches/gnupg_macos.patch"
git -C spack-packages apply "$PWD/gnupg/patches/gnupg_macos.patch"

. spack/share/spack/setup-env.sh
spack repo set --destination spack/var/spack/repos/builtin builtin

rm -rf $(spack location -p podman)

spack external find --not-buildable gawk perl
spack config add "config:install_tree:padded_length:256"


spack install gnupg target=${{ matrix.runner[1] }}
spack buildcache push --unsigned ./binary-mirror gnupg
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v5
with:
name: gnupg_binary_mirror
name: gnupg_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] }}

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 }}/gnupg_manylinux2014

# Login to Github Packages
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/setup-qemu-action@v3
id: qemu
with:
platforms: linux/ppc64le,linux/arm64,linux/amd64

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

# Build and eventually push to registry
- uses: docker/build-push-action@v5
with:
file: ./gnupg/Dockerfile.manylinux2014
platforms: linux/arm64,linux/ppc64le,linux/amd64
pull: ${{ github.event_name == 'pull_request' }}
cache-from: |
ghcr.io/${{ github.repository_owner }}/gnupg_manylinux2014:main
${{ steps.docker_meta.outputs.tags }}
cache-to: type=inline
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@v3
with:
name: gnupg_binary_mirror
path: binary-mirror
# manylinux2014:
# runs-on: ["self-hosted", "Linux"]
# outputs:
# spack_manylinux_tag: ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }}

# 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 }}/gnupg_manylinux2014

# # Login to Github Packages
# - uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - uses: docker/setup-qemu-action@v3
# id: qemu
# with:
# platforms: linux/ppc64le,linux/arm64,linux/amd64

# - uses: docker/setup-buildx-action@v3

# # Build and eventually push to registry
# - uses: docker/build-push-action@v5
# with:
# file: ./gnupg/Dockerfile.manylinux2014
# platforms: linux/arm64,linux/ppc64le,linux/amd64
# pull: ${{ github.event_name == 'pull_request' }}
# cache-from: |
# ghcr.io/${{ github.repository_owner }}/gnupg_manylinux2014:main
# ${{ steps.docker_meta.outputs.tags }}
# cache-to: type=inline
# 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: gnupg_binary_mirror
# path: binary-mirror

gnupg_json:
runs-on: ubuntu-latest
needs: [ upload-manylinux2014, macos_gnupg ]
needs: [ macos_gnupg ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: spack/spack
path: spack
ref: d36452cf4e70fa1da8b9db43921850872b82ced9
- uses: actions/download-artifact@v3
with:
name: gnupg_binary_mirror
ref: 734c5db2121b01c373eed6538e452f18887e9e44
- uses: actions/download-artifact@v6

- run: ./spack/bin/spack python ./generate_bootstrap_json.py gnupg
- uses: actions/upload-artifact@v3

- uses: actions/upload-artifact@v5
with:
name: gnupg_manifest
path: gnupg.json
9 changes: 4 additions & 5 deletions .github/workflows/patchelf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
tags:
tags:
- v0.**
pull_request:
branches:
Expand All @@ -21,7 +21,6 @@ env:
PYTHONUNBUFFERED: 1

jobs:

manylinux2014:
runs-on: ubuntu-20.04
outputs:
Expand Down Expand Up @@ -73,7 +72,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: ./copy_mirror_manylinux2014.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v5
with:
name: patchelf_binary_mirror
path: binary-mirror
Expand All @@ -87,12 +86,12 @@ jobs:
with:
repository: spack/spack
path: spack
ref: d36452cf4e70fa1da8b9db43921850872b82ced9
ref: 734c5db2121b01c373eed6538e452f18887e9e44
- uses: actions/download-artifact@v3
with:
name: patchelf_binary_mirror
- run: ./spack/bin/spack python ./generate_bootstrap_json.py patchelf
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v5
with:
name: patchelf_manifest
path: patchelf.json
Loading
Loading