-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (98 loc) · 2.72 KB
/
main.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
GIT_HTTPS: "true"
jobs:
code:
name: Build and test
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo apt-get update -y && sudo apt-get install -y -q --no-install-recommends \
apt-transport-https \
build-essential \
ca-certificates \
curl \
libssl-dev \
openssh-client \
rsync \
wget \
git \
gfortran \
ninja-build \
cmake \
python3 \
python3-dev \
python3-pip \
python3-venv
sudo apt-get install -y -q --no-install-recommends \
python3-tk \
idle3 \
findent \
expect \
environment-modules
sudo apt-get install -y -q --no-install-recommends \
pkg-config \
libsuitesparse-dev \
libopenblas-dev \
libsuperlu-dev \
libhdf5-dev \
libhdf5-openmpi-dev \
libnetcdf-dev \
libnetcdff-dev \
libfftw3-dev \
libgsl-dev \
libopenmpi-dev \
libscalapack-openmpi-dev \
libpcre3-dev \
libreadline-dev \
h5utils \
hdf5-tools \
netcdf-bin \
libmetis-dev \
libboost-all-dev
- name: Download Release # TODO: make this dynamic
run: |
wget https://github.com/itpplasma/code/releases/download/v2024.12.13/code-v2024.12.13.tar.gz -O /tmp/code.tar.gz
- name: Extract tarball
run: |
tar -xzvf /tmp/code.tar.gz
- name: NEO-2
run: |
source activate.sh
clone_github NEO-2
source scripts/setup/neo2.sh
- name: NEO-RT
run: |
source activate.sh
clone_github NEO-RT
source scripts/setup/neort.sh
- name: SIMPLE
run: |
source activate.sh
clone_github SIMPLE
pushd SIMPLE
make
popd
- name: GORILLA
run: |
source activate.sh
clone_github GORILLA
pushd GORILLA
./build.sh
popd
- name: MEPHIT
run: |
source activate.sh
clone_github MEPHIT
source scripts/setup/mephit.sh