Workflows from release. #8
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 plus install | |
on: | |
push: | |
branches: [ "main", "rc" ] | |
pull_request: | |
branches: [ "main", "rc" ] | |
jobs: | |
# Note that identifiers are not allowed to contain "."'s. | |
test-u2404-x86_64-plus: | |
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-plus-${{ github.run_id }} | |
restore-keys: | | |
cache-ubuntu-x86_64-plus | |
save-always: true | |
- name: Install and cache apt packages | |
run: sudo apt-get -y update && sudo apt-get -y install ccache curl g++ gzip libarmadillo-dev libarpack2-dev libboost-all-dev libeigen3-dev libfftw3-dev libgsl-dev libhdf5-dev liblapack-dev libopenblas-dev libreadline-dev make tar | |
# For when we're not using a release | |
# - name: Set up autotools scripts | |
# 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 -DO2SCL_HDF5_COMP -I/usr/include" | |
mkdir -p ${PWD}/build | |
./configure --build=x86_64-ubuntu-linux --prefix=${PWD}/build --enable-shared --disable-static --enable-armadillo --enable-eigen --enable-fftw --enable-openmp | |
- 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 |