-
-
Notifications
You must be signed in to change notification settings - Fork 11
109 lines (99 loc) · 3.15 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
108
109
name: CI
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- master
pull_request:
branches:
- master
jobs:
macos:
runs-on: macos-latest
timeout-minutes: 90
strategy:
matrix:
rng:
- easyRNG
- fgsl
gui:
- enable
- disable
mac_integration:
- enable
- disable
updater:
- enable
- disable
opencl:
- enable
- disable
exclude:
- gui: disable
updater: enable
- gui: disable
mac_integration: enable
- opencl: disable
mac_integration: enable
- updater: disable
mac_integration: enable
- gui: enable
rng: fgsl
include:
- gui: enable
updater: disable
extra_deps: tschoonj/tap/gtkmm-plplot libpeas
- gui: enable
updater: enable
extra_deps: tschoonj/tap/gtkmm-plplot libpeas json-glib
name: "GUI: ${{ matrix.gui }} OpenCL: ${{ matrix.opencl }} RNG: ${{ matrix.rng}} Update: ${{ matrix.updater }} App: ${{ matrix.mac_integration }}"
env:
HOMEBREW_CURL_RETRIES: 5
steps:
- uses: actions/[email protected]
- name: Remove all Homebrew packages
run: |
set -ex
rm -f /usr/local/bin/2to3
brew uninstall --force --ignore-dependencies $(brew list) || exit 1
brew update
brew upgrade
brew cleanup -s
set +ex
- name: Install shared Homebrew dependencies
run: |
set -ex
brew install autoconf automake libtool wget pkg-config libxslt hdf5 libsoup pygobject3 bash swig numpy gcc llvm librsvg libxslt git
/usr/local/bin/pip3 install lxml
set +ex
- name: Install extra Homebrew dependencies
run: |
set -ex
brew install tschoonj/tap/xraylib ${{ matrix.extra_deps }} tschoonj/tap/${{ matrix.rng}}
set +ex
- name: Build
run: |
set -e -x
cd ..
git clone https://github.com/tschoonj/xmimsim.wiki.git
cd xmimsim
autoreconf -fi
./configure --${{ matrix.gui }}-gui --${{ matrix.updater}}-updater --disable-google-analytics --${{ matrix.mac_integration }}-mac-integration --enable-custom-detector-response --disable-static --enable-introspection SHELL=/usr/local/bin/bash
make
make check
env:
CC: /usr/local/opt/llvm/bin/clang
CXX: /usr/local/opt/llvm/bin/clang++
FC: gfortran
OBJC: /usr/local/opt/llvm/bin/clang
LIBS: -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib
# CPPFLAGS: -I/usr/local/opt/boost/include
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libxml2/pkgconfig:/usr/local/opt/libxslt/pkgconfig
PYTHON: /usr/local/bin/python3
- name: Print test logs
if: ${{ failure() }}
run: |
cd tests
ls -l
cat test*.log