-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (91 loc) · 2.44 KB
/
libhkl-v5.0.0.3001.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
name: Build libhkl v5.0.0.3001 library
on: push
env:
REPO_URL: https://repo.or.cz/hkl.git
TAG: v5.0.0.3001
PREFIX: /opt/hkl
defaults:
run:
shell: bash -l {0}
jobs:
v5_0_0_3001:
name: build job
runs-on: ubuntu-20.04
steps:
- name: Diagnostics
run: |
apt update
apt-cache show gobject-introspection # | grep Version
apt-cache show libgsl-dev # | grep Version
apt-cache show libcglm-dev # | grep Version
apt-cache show libglm-dev # | grep Version
cat /etc/os-release
which git
which make
which autoconf
# gobject-introspection=1.64.1-1~ubuntu20.04.1
# libgsl-dev=2.5+dfsg-6build1
- name: Development tools
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
apt-utils \
autoconf \
autoconf-archive \
automake \
build-essential \
git \
gobject-introspection=1.64.1-1~ubuntu20.04.1 \
libgsl-dev=2.5+dfsg-6build1 \
libglm-dev \
libgirepository1.0-dev \
libglib2.0-dev \
libhdf5-dev \
libtool \
m4 \
make \
pkg-config
#
# not in ubuntu-20.04
# libcglm-dev \
- name: Get source
run: |
git clone "${REPO_URL}"
cd hkl
git checkout --detach "${TAG}"
- name: Compile
run: |
set -e
cd hkl
#
# add version info (splice into the include file)
sed -i '/^.*tau = 2pi.*/i #define HKL_VERSION "'"${TAG}"'"' hkl.h
#
# don't build the documentation
# sed removes any lines containing the described text
sed -i '/gtk-doc/d' ./configure.ac
sed -i '/GTK_DOC_CHECK/d' ./configure.ac
sed -i '/Documentation/d' ./configure.ac
#
test -d m4 || mkdir m4
aclocal --print-ac-dir
autoreconf -ivf
#
./configure \
--disable-static \
--disable-gui \
--disable-hkl-doc \
--enable-introspection=yes \
--prefix="${PREFIX}"
#
make -j ${CPU_COUNT}
make install
- name: archive
run: |
cd "${PREFIX}"
echo "${HOME}"
tar czf "/opt/libhkl.tar.gz" ./*/
- name: Save Archive as artifact
uses: actions/upload-artifact@v3
with:
name: libhkl-${{ env.TAG }}-x86_64.tar.gz
path: "/opt/libhkl.tar.gz"