Skip to content

Commit

Permalink
add spack package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
prudhomm committed Nov 13, 2024
1 parent 8a41988 commit a5e7ac7
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: self-ubuntu-22.04
runs-on: self-ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
69 changes: 69 additions & 0 deletions docs/user/modules/install/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
:feelpp: Feel++
= Get {feelpp}


{feelpp} can be installed on Windows 10, Debian/Ubuntu systems.

The main channel is called `latest`.
Expand Down Expand Up @@ -135,6 +137,73 @@ To use {feelpp} on Windows 10, follow these steps:
* [x] follow the corresponding Ubuntu or Debian {feelpp} installation steps
include::partial$install-deb.adoc[]
--
Spack::
+
--
https://spack.io[Spack] packaging is available for {feelpp} thanks to ghcr.io.
Binaries are available for the generic microarchitecture `x86_64_v3`.
The following steps require the installation of Spack and the cloning of the `spack.numpex` repository.
[discrete]
=== Clone Spack
[source,sh]
----
git clone https://github.com/spack/spack <path to spack>/spack
source <path to spack>/spack/share/spack/setup-env.sh
----
[discrete]
=== Add {feelpp} Spack Mirror
First set the {feelpp} mirror.
.set the {feelpp} spack mirror (only once)
[source,sh]
----
spack mirror add spack-mirror oci://ghcr.io/feelpp/spack <1>
----
<.> add the mirror named spack-mirror to spack
You can check the mirror with
[source,sh]
----
spack mirror list
----
[discrete]
=== Clone spack.numpex
Add `spack.numpex` as a spack repository
[source,sh]
----
git clone https://github.com/numpex/spack.numpex <path to spack.numpex>/spack.numpex
spack repo add <path to spack.numpex>/spack.numpex
# check the repo
spack repo list
----
[discrete]
=== Install {feelpp}
then download the package feelpp
[source,sh]
----
spack install --use-buildcache only feelpp target=x86_64_v3
----
{feelpp} package as well as the dependencies will be installed.
You can check the package by run `spack test`
[source,sh]
----
spack test run feelpp
----
--
Docker::
+
Expand Down

0 comments on commit a5e7ac7

Please sign in to comment.