Skip to content

refactor!: replace hipo::bank::iterator with hipo::bank::rowlist #21

refactor!: replace hipo::bank::iterator with hipo::bank::rowlist

refactor!: replace hipo::bank::iterator with hipo::bank::rowlist #21

Workflow file for this run

name: HIPO CI
on:
pull_request:
push:
branches: [ master ]
tags: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build:
strategy:
fail-fast: false
matrix:
runner: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: build
run: |
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install
cmake --build build -j4
cmake --install build
- run: brew install tree
if: ${{ matrix.runner == 'macos-latest' }}
- run: tree install
download_test_data:
name: download test data
runs-on: ubuntu-latest
env:
type: physics
steps:
- uses: actions/cache@v4
id: cache
with:
key: test_data
path: test_data.hipo
lookup-only: true
- name: download
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: |
# FIXME: it would be better to generate our own HIPO file here, rather than assuming this file will continue to exist
wget -nv --no-check-certificate http://clasweb.jlab.org/clas12offline/distribution/clas12-timeline/validation_files_${{ env.type }}.tar.zst
tar xvf validation_files_${{ env.type }}.tar.zst
mv -v $(find validation_files -type f -name "*.hipo" | head -n1) test_data.hipo
examples:
name: run examples
needs: [ download_test_data ]
strategy:
fail-fast: false
matrix:
runner: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive # FIXME: need `lz4` submoudle for Makefile, whereas `cmake` does not
- name: build # FIXME: examples aren't in `cmake` config, so rebuild using `make`
run: |
make -j4
make -j4 -C examples
- name: get test data
uses: actions/cache/restore@v4
with:
key: test_data
path: test_data.hipo
- run: examples/bankRowList.exe test_data.hipo
- run: examples/histograms.exe test_data.hipo # FIXME: test ALL the other examples