Created
April 12, 2021 16:58
-
-
Save Ankurk99/b8201b6a5ff9ae052c1f6eedcde1ddd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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