Skip to content

Fix autotools test harness #22

Fix autotools test harness

Fix autotools test harness #22

Workflow file for this run

name: build
on:
push:
branches:
- main
- github_action
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build dependencies
run: |
./mcrouter/scripts/install_ubuntu_24.04.sh "$(pwd)"/mcrouter-install deps
- name: Build mcrouter
run: |
mkdir -p "$(pwd)"/mcrouter-install/install
./mcrouter/scripts/install_ubuntu_24.04.sh "$(pwd)"/mcrouter-install mcrouter
- name: Test mcrouter
run: |
export INSTALL_DIR="$(pwd)"/mcrouter-install/install
export LD_LIBRARY_PATH="$INSTALL_DIR"/lib:"$LD_LIBRARY_PATH"
export LD_RUN_PATH="$INSTALL_DIR"/lib:"$LD_RUN_PATH"
export LDFLAGS="-L$INSTALL_DIR/lib $LDFLAGS"
export CPPFLAGS="-I$INSTALL_DIR/include $CPPFLAGS"
cd mcrouter
make check -s -j$(nproc)