-
Notifications
You must be signed in to change notification settings - Fork 14
73 lines (58 loc) · 1.84 KB
/
ubuntu-x86_64-min.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
---
name: Ubuntu 24.04 x86_64 minimal install
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
# Note that identifiers are not allowed to contain "."'s.
test-u2404-x86_64-min:
runs-on: ubuntu-24.04
steps:
# - name: Git checkout
# uses: actions/checkout@v4
- name: Cache action
uses: actions/cache@v4
with:
path: ~/.ccache
# Necessary to cache the ccache data on every run
key: cache-ubuntu-x86_64-min-${{ github.run_id }}
restore-keys: |
cache-ubuntu-x86_64-min
save-always: true
- name: Install and cache apt packages
run: sudo apt-get -y update && sudo apt-get -y install ccache g++ gzip libgsl-dev libhdf5-dev libboost-all-dev libreadline-dev make tar
- name: Download release
uses: robinraju/release-downloader@v1
with:
repository: 'awsteiner/o2scl'
tag: 'v0.929.2'
fileName: 'o2scl-0.929.2.tar.gz'
- name: untar release
run: |
tar xvzf o2scl-0.929.2.tar.gz && cd o2scl-0.929
# - name: Set up autotools
# run:
# ./autogen.sh
- name: Configure
run: |
cd ${GITHUB_WORKSPACE}/o2scl-0.929
export CC='ccache gcc'
export CXX='ccache g++'
export CCACHE_DIR=~/.ccache
export CXXFLAGS+="-O3 -DO2SCL_UBUNTU_HDF5 -DO2SCL_HDF5_PRE_1_12 -I/usr/include"
mkdir -p ${PWD}/build
./configure --build=x86_64-ubuntu-linux --prefix=${PWD}/build --enable-shared --disable-static
- name: Build and install
run: |
make VERBOSE=1 blank-doc -j4 -O
make VERBOSE=1 -j4 -O
make VERBOSE=1 install -j4 -O
- name: Try acol
run: |
export LD_LIBRAY_PATH+=:${PWD}/build
${PWD}/build/bin/acol -v
- name: Check
run: |
make VERBOSE=1 check -j4 -O