Skip to content

Commit

Permalink
ci: test with RCDB
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 30, 2024
1 parent 55bc5a9 commit 0068501
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/install-dependency-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ GENERAL_PACKAGE_LIST_LINUX=(
openssl
gsl
davix
### RCDB dependencies
mariadb
)
IGUANA_PACKAGE_LIST_LINUX=(
fmt
Expand All @@ -56,6 +58,8 @@ GENERAL_PACKAGE_LIST_MACOS=(
libxext
openssl
gsl
### RCDB dependencies
mysql ### FIXME: TEST: mysql vs. mariadb
)
IGUANA_PACKAGE_LIST_MACOS=(
fmt
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,19 @@ jobs:
- name: set ROOT environment
if: ${{ matrix.id != 'noROOT' }}
run: iguana_src/.github/source-ROOT.sh root
###### RCDB
- name: get RCDB
- uses: actions/checkout@v4
with:
repository: JeffersonLab/rcdb
ref: main
path: rcdb_src
- name: set RCDB env
id: rcdb_env
working-directory: rcdb_src
run: |
echo RCDB_HOME=$(pwd) >> $GITHUB_ENV
echo ver=$(git rev-parse HEAD | cut -c1-7) >> $GITHUB_OUTPUT
###### summarize dependencies
- name: summarize dependencies
if: ${{ matrix.id == 'cpp' }}
Expand All @@ -359,6 +372,7 @@ jobs:
echo '| Dependency | Version |' >> $GITHUB_STEP_SUMMARY
echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY
echo "| \`hipo\` | ${{ env.hipo_ref }} |" >> $GITHUB_STEP_SUMMARY
echo "| \`rcdb\` | commit hash \`${{ steps.rcdb_env.outputs.ver }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| \`root\` | $(root --version 2>&1 | head -n1) |" >> $GITHUB_STEP_SUMMARY
echo "| \`ruby\` | $(ruby --version) |" >> $GITHUB_STEP_SUMMARY
cat pkg_summary.md >> $GITHUB_STEP_SUMMARY
Expand All @@ -368,6 +382,7 @@ jobs:
meson setup iguana_build iguana_src \
--prefix=$(pwd)/iguana \
--pkg-config-path=$(pwd)/hipo/lib/pkgconfig \
-Drcdb:home=$RCDB_HOME \
-Dwerror=true \
-Dinstall_examples=true \
-Dtest_data_file=$(pwd)/test_data.hipo \
Expand Down

0 comments on commit 0068501

Please sign in to comment.