Skip to content

[FEATURE] Add CI to test bpftrace #982

[FEATURE] Add CI to test bpftrace

[FEATURE] Add CI to test bpftrace #982

Workflow file for this run

name: Build and Test VM
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
container:
- ubuntu-2204
- fedora-39
container:
image: "manjusakalza/bpftime-base-image:${{matrix.container}}"
options: --privileged
steps:
- name: cache dependencies
uses: actions/cache@v2
id: cache
with:
path: ${{ github.workspace }}/${{ env.INSTALL_LOCATION }}
key: ${{ runner.os }}-dependencies
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/setup-python@v4
if: startsWith(matrix.container,'ubuntu')
with:
python-version: '3.8'
- name: build
run: make build-vm
- name: run tests x86
shell: bash
run: |
python3.8 -m venv vm/test
source vm/test/bin/activate
pip install -r vm/test/requirements.txt
# make build # or build-arm32 build-arm64
make -C vm test-vm -j