summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-11-03 07:15:24 +0100
committerGitHub <noreply@github.com>2021-11-02 23:15:24 -0700
commit78c08fccd56d073a336eeee3dd4548d81101c920 (patch)
tree3d81383f9575f2f7163fc1163129be4b33cf0e9a /.github/workflows
parent1a3747b2b3a8cd9416f1875ce0f72756630740e6 (diff)
downloadspack-78c08fccd56d073a336eeee3dd4548d81101c920.tar.gz
spack-78c08fccd56d073a336eeee3dd4548d81101c920.tar.bz2
spack-78c08fccd56d073a336eeee3dd4548d81101c920.tar.xz
spack-78c08fccd56d073a336eeee3dd4548d81101c920.zip
Bootstrap GnuPG (#24003)
* GnuPG: allow bootstrapping from buildcache and sources * Add a test to bootstrap GnuPG from binaries * Disable bootstrapping in tests * Add e2e test to bootstrap GnuPG from sources on Ubuntu * Add e2e test to bootstrap GnuPG on macOS
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/bootstrap.yml100
1 files changed, 95 insertions, 5 deletions
diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml
index c4fb1aca8d..5b3e237b0c 100644
--- a/.github/workflows/bootstrap.yml
+++ b/.github/workflows/bootstrap.yml
@@ -19,7 +19,7 @@ on:
jobs:
- fedora-sources:
+ fedora-clingo-sources:
runs-on: ubuntu-latest
container: "fedora:latest"
steps:
@@ -46,7 +46,7 @@ jobs:
spack -d solve zlib
tree ~/.spack/bootstrap/store/
- ubuntu-sources:
+ ubuntu-clingo-sources:
runs-on: ubuntu-latest
container: "ubuntu:latest"
steps:
@@ -76,7 +76,7 @@ jobs:
spack -d solve zlib
tree ~/.spack/bootstrap/store/
- opensuse-sources:
+ opensuse-clingo-sources:
runs-on: ubuntu-latest
container: "opensuse/leap:latest"
steps:
@@ -101,7 +101,7 @@ jobs:
spack -d solve zlib
tree ~/.spack/bootstrap/store/
- macos-sources:
+ macos-clingo-sources:
runs-on: macos-latest
steps:
- name: Install dependencies
@@ -137,7 +137,6 @@ jobs:
spack -d solve zlib
tree ~/.spack/bootstrap/store/
-
ubuntu-clingo-binaries:
runs-on: ubuntu-latest
strategy:
@@ -159,3 +158,94 @@ jobs:
spack bootstrap untrust spack-install
spack -d solve zlib
tree ~/.spack/bootstrap/store/
+
+ ubuntu-gnupg-binaries:
+ runs-on: ubuntu-latest
+ container: "ubuntu:latest"
+ steps:
+ - name: Install dependencies
+ env:
+ DEBIAN_FRONTEND: noninteractive
+ run: |
+ apt-get update -y && apt-get upgrade -y
+ apt-get install -y \
+ bzip2 curl file g++ gcc patchelf gfortran git gzip \
+ make patch unzip xz-utils python3 python3-dev tree
+ - uses: actions/checkout@v2
+ - name: Setup repo and non-root user
+ run: |
+ git --version
+ git fetch --unshallow
+ . .github/workflows/setup_git.sh
+ useradd -m spack-test
+ chown -R spack-test .
+ - name: Bootstrap GnuPG
+ shell: runuser -u spack-test -- bash {0}
+ run: |
+ source share/spack/setup-env.sh
+ spack bootstrap untrust spack-install
+ spack -d gpg list
+ tree ~/.spack/bootstrap/store/
+
+ ubuntu-gnupg-sources:
+ runs-on: ubuntu-latest
+ container: "ubuntu:latest"
+ steps:
+ - name: Install dependencies
+ env:
+ DEBIAN_FRONTEND: noninteractive
+ run: |
+ apt-get update -y && apt-get upgrade -y
+ apt-get install -y \
+ bzip2 curl file g++ gcc patchelf gfortran git gzip \
+ make patch unzip xz-utils python3 python3-dev tree \
+ gawk
+ - uses: actions/checkout@v2
+ - name: Setup repo and non-root user
+ run: |
+ git --version
+ git fetch --unshallow
+ . .github/workflows/setup_git.sh
+ useradd -m spack-test
+ chown -R spack-test .
+ - name: Bootstrap GnuPG
+ shell: runuser -u spack-test -- bash {0}
+ run: |
+ source share/spack/setup-env.sh
+ spack solve zlib
+ spack bootstrap untrust github-actions
+ spack -d gpg list
+ tree ~/.spack/bootstrap/store/
+
+ macos-gnupg-binaries:
+ runs-on: macos-latest
+ steps:
+ - name: Install dependencies
+ run: |
+ brew install tree
+ # Remove GnuPG since we want to bootstrap it
+ sudo rm -rf /usr/local/bin/gpg
+ - uses: actions/checkout@v2
+ - name: Bootstrap GnuPG
+ run: |
+ source share/spack/setup-env.sh
+ spack bootstrap untrust spack-install
+ spack -d gpg list
+ tree ~/.spack/bootstrap/store/
+
+ macos-gnupg-sources:
+ runs-on: macos-latest
+ steps:
+ - name: Install dependencies
+ run: |
+ brew install gawk tree
+ # Remove GnuPG since we want to bootstrap it
+ sudo rm -rf /usr/local/bin/gpg
+ - uses: actions/checkout@v2
+ - name: Bootstrap GnuPG
+ run: |
+ source share/spack/setup-env.sh
+ spack solve zlib
+ spack bootstrap untrust github-actions
+ spack -d gpg list
+ tree ~/.spack/bootstrap/store/