-
Notifications
You must be signed in to change notification settings - Fork 12
107 lines (104 loc) · 3.2 KB
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: Build in ${{ matrix.mode }} mode
strategy:
fail-fast: false
matrix:
mode: [native, simgrid]
include:
- mode: "native"
deps: "nvidia-cuda-toolkit-gcc"
config: ""
- mode: "simgrid"
deps: "libsimgrid-dev"
config: "--enable-simgrid"
steps:
- uses: actions/checkout@v3
- name: dependencies
run: sudo apt-get update ; sudo apt-get install
pkg-config libtool-bin
libnuma-dev
libglpk-dev
mpi-default-dev
libgl1-mesa-dev
libglu1-mesa-dev
freeglut3-dev
libx11-dev
libblas-dev
libfftw3-dev
libhwloc-dev
libleveldb-dev
libhdf5-dev
valgrind
opencl-c-headers ocl-icd-opencl-dev
gfortran
help2man doxygen
${{ matrix.deps }}
- name: autoconf
run: ./autogen.sh
- name: configure
run: ./configure --prefix=/tmp/foobar --enable-quick-check --disable-mpi-check ${{ matrix.config }}
- name: Store the config
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: config.log
path: config.log
- name: make
run: make
- name: make check
run: make check -k
- name: make showfailed
if: ${{ always() }}
run: make showfailed
- name: make showsuite
if: ${{ always() }}
run: make showsuite
- name: make showcheck
if: ${{ always() }}
run: make showcheck
- name: make install
run: make install
- name: make dist
if: ${{ matrix.mode != 'simgrid' }}
run: make dist
- name: make distcheck
if: ${{ matrix.mode != 'simgrid' }}
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-quick-check --disable-mpi-check"
reprotest:
runs-on: ubuntu-latest
name: Build with reprotest
steps:
- uses: actions/checkout@v3
- name: dependencies
run: sudo apt-get update ; sudo apt-get install
pkg-config libtool-bin
libnuma-dev
libglpk-dev
mpi-default-dev
libgl1-mesa-dev
libglu1-mesa-dev
freeglut3-dev
libx11-dev
libblas-dev
libfftw3-dev
libhwloc-dev
libleveldb-dev
libhdf5-dev
valgrind
opencl-c-headers ocl-icd-opencl-dev
gfortran
help2man doxygen
reprotest
- name: autoconf
run: ./autogen.sh
- name: run
run: reprotest 'export SOURCE_DATE_EPOCH=946684800 ; sed -i "/^HTML_TIMESTAMP/s/YES/NO/" doc/doxygen.cfg ; mkdir build && cd build && FCFLAGS=-ffile-prefix-map=$PWD=. FFLAGS=-ffile-prefix-map=$PWD=. CFLAGS=-ffile-prefix-map=$PWD=. CXXFLAGS=-ffile-prefix-map=$PWD=. ../configure --enable-quick-check --disable-build-doc --disable-build-doc-pdf && TZ= make && make install-strip DESTDIR=$PWD/../tmp' tmp