Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Add build test github action
Browse files Browse the repository at this point in the history
Signed-off-by: Junyeong Jeong <[email protected]>
  • Loading branch information
rhdxmr committed May 6, 2021
1 parent 1b3c5a6 commit 66bd707
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build-test.yml
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"

0 comments on commit 66bd707

Please sign in to comment.