This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Junyeong Jeong <[email protected]>
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: RedBPF build test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
# Publish `v1.2.3` tags as releases. | ||
tags: | ||
- v* | ||
|
||
# Run tests for any PRs. | ||
pull_request: | ||
|
||
env: | ||
BASE_IMAGE: ghcr.io/${{ github.repository_owner }}/ingraind-build | ||
|
||
jobs: | ||
ubuntu-2004-build-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: System info | ||
run: | | ||
uname -a | ||
lsb_release -a | ||
- name: Initialize git submodules | ||
run: | | ||
git submodule update --init --recursive | ||
- name: Run RedBPF build on ubuntu-20.04 container | ||
run: | | ||
docker run --privileged \ | ||
-v /sys/kernel/debug:/sys/kernel/debug:rw \ | ||
-v /lib/modules:/lib/modules:ro \ | ||
-v /usr/src:/usr/src:ro \ | ||
-v /usr/include/linux:/usr/include/linux:ro \ | ||
-v $PWD:/build \ | ||
-w /build \ | ||
$BASE_IMAGE:latest-ubuntu-20.04 \ | ||
/bin/bash -c "cargo build && cargo build --examples" | ||
fedora-35-build-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: System info | ||
run: | | ||
uname -a | ||
lsb_release -a | ||
- name: Initialize git submodules | ||
run: | | ||
git submodule update --init --recursive | ||
- name: Run RedBPF build on fedora-35 container | ||
run: | | ||
docker run --privileged \ | ||
-v /sys/kernel/debug:/sys/kernel/debug:rw \ | ||
-v /lib/modules:/lib/modules:ro \ | ||
-v /usr/src:/usr/src:ro \ | ||
-v /usr/include/linux:/usr/include/linux:ro \ | ||
-v $PWD:/build \ | ||
-w /build \ | ||
$BASE_IMAGE:latest-fedora-rawhide \ | ||
/bin/bash -c "cargo build && cargo build --examples" |