Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Spack CI in a bare container #2360

Merged
merged 7 commits into from
Sep 13, 2022
Merged
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
23 changes: 13 additions & 10 deletions .github/workflows/spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ on:

jobs:
build:
strategy:
matrix:
# os: [ubuntu-20.04, macos-10.15]
os: [ubuntu-20.04]
fail-fast: false
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
container: ubuntu:latest

env:
CC: gcc-10
CXX: g++-10
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1

steps:
- name: Get Spack
Expand All @@ -46,6 +43,12 @@ jobs:
repository: ${{ github.event.inputs.spack_repo }}
ref: ${{ github.event.inputs.spack_ref }}

- name: Install Spack requirements
run: |
apt-get -y update
apt-get install -y bzip2 curl file git gzip make patch python3-minimal tar xz-utils
apt-get install -y g++ gfortran # compilers

- name: Build DOLFINx (C++) development version via Spack
run: |
. ./spack/share/spack/setup-env.sh
Expand All @@ -70,7 +73,7 @@ jobs:
run: |
. ./spack/share/spack/setup-env.sh
spack env activate cpp-main
spack install py-fenics-ffcx@main
spack install cmake py-fenics-ffcx@main
cd dolfinx-main/cpp/
cd demo/poisson
cmake .
Expand All @@ -88,7 +91,7 @@ jobs:
run: |
. ./spack/share/spack/setup-env.sh
spack env activate cpp-release
spack install py-fenics-ffcx
spack install cmake py-fenics-ffcx
cd dolfinx-release/cpp/
cd demo/poisson
cmake .
Expand Down