-
Notifications
You must be signed in to change notification settings - Fork 54
47 lines (42 loc) · 1.13 KB
/
ci.yaml
File metadata and controls
47 lines (42 loc) · 1.13 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
# Run CI when a commit lands on the main branch and when a PR for main is
# opened.
on:
push:
branches:
- main
- "**" # TODO: remove once it's mergeable
pull_request:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
DEFAULT_DISTRO: fedora-41
permissions:
contents: read
packages: write
jobs:
benchmark:
strategy:
matrix:
host:
- name: "ubuntu-24.04"
arch: "x64"
- name: "4-core-ubuntu-arm"
arch: "arm64"
runs-on: ["${{ matrix.host.name }}"]
name: "Benchmark: ${{ matrix.host.arch }}"
container:
image: ghcr.io/facebook/bpfilter:fedora-41-${{ matrix.host.arch }}
options: --privileged
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Configure build
run: cmake -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build -DWITH_BENCHMARK=on
- name: test
run: ls -lha $GITHUB_WORKSPACE; ls -lha $GITHUB_WORKSPACE/build; id
- name: Build
run: make -C $GITHUB_WORKSPACE/build -j `nproc` benchmark