Skip to content

Merge pull request #44 from awsteiner/dependabot/pip/docker/werkzeug-… #29

Merge pull request #44 from awsteiner/dependabot/pip/docker/werkzeug-…

Merge pull request #44 from awsteiner/dependabot/pip/docker/werkzeug-… #29

---
name: Ubuntu 24.04 x86_64 minimal install
on:
push:
branches: [ "main", "rc" ]
pull_request:
branches: [ "main", "rc" ]
jobs:
# Note that identifiers are not allowed to contain "."'s.
ubuntu-x86_64-min:
runs-on: ubuntu-24.04
steps:
# - name: Git checkout
# uses: actions/checkout@v4
- 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
mv o2scl-0.929/* .
rmdir o2scl-0.929
- 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 dependencies
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
# For when we're not using a release
# - name: Set up autotools
# run:
# ./autogen.sh
- name: Configure
run: |
cd ${GITHUB_WORKSPACE}
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: |
cd ${GITHUB_WORKSPACE}
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: |
cd ${GITHUB_WORKSPACE}
make VERBOSE=1 check -j4 -O