support debugfs and tracefs #93
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: Go-test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22.10 | |
- name: Install Compilers | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes build-essential pkgconf libelf-dev llvm-12 clang-12 linux-tools-common linux-tools-generic | |
for tool in "clang" "llc" "llvm-strip" | |
do | |
sudo rm -f /usr/bin/$tool | |
sudo ln -s /usr/bin/$tool-12 /usr/bin/$tool | |
done | |
go get -u github.com/shuLhan/go-bindata/... | |
shell: bash | |
- name: Network Interface | |
run: | | |
ip -4 route show | |
ip -o -4 route show to default | |
- name: Test | |
run: | | |
go test -exec sudo ./... | |
cd examples/ | |
sh test.sh |