-
Notifications
You must be signed in to change notification settings - Fork 0
125 lines (109 loc) · 3.13 KB
/
main.yml
File metadata and controls
125 lines (109 loc) · 3.13 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
# 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"
CI_MERGE_REQUEST_SOURCE_BRANCH_NAME: "${{ github.head_ref }}"
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/v2025.01.02/code-v2025.01.02.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
cd NEO-2
$CODE/scripts/checkout_branch.sh $CODE_BRANCH
make
- name: NEO-RT
run: |
source activate.sh
clone_github NEO-RT
cd NEO-RT
$CODE/scripts/checkout_branch.sh $CODE_BRANCH
make
- name: SIMPLE
run: |
source activate.sh
clone_github SIMPLE
cd SIMPLE
$CODE/scripts/checkout_branch.sh $CODE_BRANCH
make
- name: GORILLA
run: |
source activate.sh
clone_github GORILLA
cd GORILLA
$CODE/scripts/checkout_branch.sh $CODE_BRANCH
make
- name: MEPHIT
run: |
source activate.sh
clone_github MEPHIT
source /etc/profile.d/modules.sh
module use -a $CODE/modules
module load mephit
cd MEPHIT
$CODE/scripts/checkout_branch.sh $CODE_BRANCH
make
pip install -e .