forked from facebook/mcrouter
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 839 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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)
- name: Upload test logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-suite.log
path: mcrouter/test/test-suite.log