mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 10:14:44 +08:00
* add ci for profile * fix unnecessary code in 7 * fix exit code 124 * fix llvm-strip * fix trailing space
30 lines
842 B
YAML
30 lines
842 B
YAML
name: Test eunomia-bpf example CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'recursive'
|
|
- name: install deps
|
|
run: |
|
|
sudo apt-get install -y --no-install-recommends \
|
|
libelf1 libelf-dev zlib1g-dev libclang-13-dev \
|
|
make git clang llvm pkg-config build-essential
|
|
- name: test 11 bootstrap
|
|
run: |
|
|
make -C src/11-bootstrap
|
|
sudo timeout -s 2 3 src/11-bootstrap/bootstrap || if [ $? = 124 ]; then exit 0; else exit $?; fi
|
|
- name: test 12 profile
|
|
run: |
|
|
make -C src/12-profile
|
|
# sudo timeout -s 2 3 src/12-profile/profile || if [ $? = 124 ]; then exit 0; else exit $?; fi
|