Work on release dl. #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: | | |
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 |