add arm ci #117
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-arm: | |
name: Test on ARM | |
runs-on: ubicloud-standard-2-arm | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.21 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt install -y --no-install-recommends gcc clang llvm libbpf0 libbpf-dev musl musl-dev build-essential linux-libc-dev linux-tools-common | |
- name: Create links | |
run: | | |
sudo ln -s /usr/include/aarch64-linux-gnu/asm /usr/include/asm | |
sudo ln -s /usr/include/aarch64-linux-gnu/bits /usr/include/bits | |
sudo ln -s /usr/include/aarch64-linux-gnu/sys /usr/include/sys | |
sudo ln -s /usr/include/aarch64-linux-gnu/gnu /usr/include/gnu | |
- name: Check system | |
run: | | |
uname -a | |
lscpu | |
ip a | |
ifconfig | |
- name: Build | |
run: make build | |
- name: Debug | |
run: | | |
sudo ./build/durdur attach -i lo | |
sudo bpftool prog list | |
timeout 20s sudo cat /sys/kernel/debug/tracing/trace_pipe > trace_output.txt & | |
sudo ./build/durdur drop --src "127.0.0.8" | |
ping -c 1 127.0.0.8 || true | |
sudo bpftool map list | |
sudo ./build/durdur detach | |
sleep 20s | |
cat trace_output.txt | |
echo "ok" | |
- name: Test | |
run: make test |