Fix autotools test harness #33
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: | | |
cd mcrouter | |
make check -s -j$(nproc) || (cd test && make recheck -s j$(nproc)) | |
- name: Upload test logs | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-suite.log | |
path: mcrouter/test/test-suite.log |