-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
runs: | ||
|
||
using: 'composite' | ||
|
||
steps: | ||
|
||
- name: Checkout GemGI (for simulation config.nml inputs) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: gemini3d/gemci | ||
path: ${{ github.workspace }}/gemci | ||
|
||
- name: Cache install Gemini3D | ||
id: cache-gemini | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ env.CMAKE_INSTALL_PREFIX }} | ||
key: ${{ runner.os }}-gemini-${{ hashFiles('gemini3d/CMakeLists.txt') }} | ||
# weak check that gemini3d has changed since last cache update | ||
|
||
- name: Checkout Gemini3D | ||
if: steps.cache-gemini.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: gemini3d/gemini3d | ||
path: gemini3d | ||
submodules: true | ||
|
||
- name: non-cache Install Gemini3D | ||
if: steps.cache-gemini.outputs.cache-hit != 'true' | ||
timeout-minutes: 15 | ||
shell: bash | ||
run: | | ||
cmake -B build | ||
cmake --build build | ||
cmake --install build | ||
working-directory: gemini3d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
runs: | ||
|
||
using: 'composite' | ||
|
||
steps: | ||
|
||
# don't install libscalapack-openmpi-dev, it is broken CMake package | ||
|
||
# don't remove sudo apt update or every once in a while all the jobs will fail when the GA runner | ||
# is out of sync with the upstream Ubuntu package repos | ||
- name: Install packages (Linux) | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin libhdf5-dev ninja-build liblapack-dev | ||
- name: Install packages (MacOS) | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: brew install ninja open-mpi hdf5 scalapack |