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

Commit

Permalink
Add github action for build test
Browse files Browse the repository at this point in the history
Signed-off-by: Junyeong Jeong <[email protected]>
  • Loading branch information
rhdxmr committed May 7, 2021
1 parent 1b3c5a6 commit 0c1b686
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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 $PWD:/build \
-w /build \
$BASE_IMAGE:latest-ubuntu-20.04 \
/bin/bash -c "export KERNEL_VERSION=5.4.0-71-generic; 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 $PWD:/build \
-w /build \
$BASE_IMAGE:latest-fedora-rawhide \
/bin/bash -c "export KERNEL_VERSION=5.12.0-0.rc7.189.fc35.x86_64; cargo build && cargo build --examples"

0 comments on commit 0c1b686

Please sign in to comment.