Skip to content

Commit

Permalink
use older glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed May 18, 2024
1 parent 158967f commit d80ab14
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
rebuild:
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
permissions:
packages: write
steps:
Expand All @@ -31,5 +31,5 @@ jobs:
- name: Push packages and update index
run: |
spack mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" github-actions-buildcache
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --update-index github-actions-buildcache
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:20.04 --update-index github-actions-buildcache
if: ${{ !cancelled() }}
2 changes: 1 addition & 1 deletion .github/workflows/update-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
update-index:
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
permissions:
packages: write
steps:
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ This repo provides a buildcache to speed up Spack in your GitHub Actions.

Currently it provides binaries from Spack `develop` for

- `%gcc@11 os=ubuntu22.04 target=x86_64_v3`
- `%clang@15 os=ubuntu22.04 target=x86_64_v3`
- `%gcc@11 ^glibc@2.31 target=x86_64_v3`
- `%clang@12 ^glibc@2.31 target=x86_64_v3`

which supports the following distros:

- Ubuntu 20.04 and later
- Debian 11 and later
- RHEL 9 and later
- Fedora 32 and later

To use it, add an environment `spack.yaml` to the root of your own repository

Expand All @@ -21,7 +28,7 @@ spack:

packages:
all:
require: '%gcc@12 target=x86_64_v3'
require: 'target=x86_64_v3'
```
and Spack install it in a GitHub Action:
Expand Down
8 changes: 4 additions & 4 deletions spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ spack:
- openmpi
- perl
- python@3.11
- - '%gcc@11'
- '%clang@15'
- - '%gcc@9'
- '%clang@12'
- matrix:
- - fftw +mpi +openmp ^mpich
- fftw +mpi +openmp ^openmpi
- openblas threads=openmp +ilp64
- - '%gcc@11'
- - '%gcc@9'
# clang does not have openmp libs in GitHub Actions?
- matrix:
- - fftw +mpi ^mpich
- fftw +mpi ^openmpi
- - '%clang@15'
- - '%clang@12'
concretizer:
unify: false
config:
Expand Down

0 comments on commit d80ab14

Please sign in to comment.