Fix autotools test harness #22
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: 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) |