forked from PHAREHUB/PHARE
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 879 Bytes
/
mkn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: mkn
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system deps (openmpi, hdf5, ccache,...)
run: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev openmpi-bin libhdf5-openmpi-dev ccache
- name: "setup"
env:
MKN_GCC_PREFERRED: 1
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn
sudo mkdir /mkn && sudo chown -R $USER /mkn
- name: "Build/Test"
env:
MKN_GCC_PREFERRED: 1
run: >
PATH="$PWD:$PATH" KLOG=3 ./mkn.sh clean build run -ga '--std=c++20 -fPIC'