Skip to content

Instantly share code, notes, and snippets.

@Ankurk99
Created April 12, 2021 16:58
Show Gist options
  • Save Ankurk99/b8201b6a5ff9ae052c1f6eedcde1ddd9 to your computer and use it in GitHub Desktop.
Save Ankurk99/b8201b6a5ff9ae052c1f6eedcde1ddd9 to your computer and use it in GitHub Desktop.
name: build_commits
on: [push, pull_request]
jobs:
build_commits:
name: build commit code
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16'
- name: install llvm and libelf
run: |
sudo apt-get install llvm
sudo apt-get install libelf-dev
- name: git fetch commit code
run: |
git fetch origin pull/$PR/head:newbranch
git checkout newbranch
env:
PR: ${{ github.event.pull_request.number }}
- name: build commits
run: git rebase --exec "make clean && make -j $(nproc)" newbranch
- name: build all BPF datapath permutations
run: make --quiet -C bpf build_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment