diff --git a/.github/workflows/public-ci.yml b/.github/workflows/public-ci.yml index bc6f072..b4d3b0d 100644 --- a/.github/workflows/public-ci.yml +++ b/.github/workflows/public-ci.yml @@ -40,22 +40,11 @@ jobs: - name: Install libbpf and libxdp run: | - sudo apt update - sudo apt install -y wget build-essential golang - sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf1_1.1.0-1_amd64.deb - sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf-dev_1.1.0-1_amd64.deb - sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp1_1.3.0-2ubuntu2_amd64.deb - sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp-dev_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y ./libbpf1_1.1.0-1_amd64.deb - sudo apt install -y ./libbpf-dev_1.1.0-1_amd64.deb - sudo apt install -y ./libxdp1_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y ./libxdp-dev_1.3.0-2ubuntu2_amd64.deb + make install-xdp sudo apt install -y clang sudo apt install -y llvm sudo apt install -y gcc-multilib - - - + - name: Run build run: make build @@ -70,17 +59,7 @@ jobs: go-version: 1.19 - name: Install libbpf and libxdp - run: | - sudo apt update - sudo apt install -y wget build-essential golang - sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf1_1.1.0-1_amd64.deb - sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf-dev_1.1.0-1_amd64.deb - sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp1_1.3.0-2ubuntu2_amd64.deb - sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp-dev_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y ./libbpf1_1.1.0-1_amd64.deb - sudo apt install -y ./libbpf-dev_1.1.0-1_amd64.deb - sudo apt install -y ./libxdp1_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y ./libxdp-dev_1.3.0-2ubuntu2_amd64.deb + run: make install-xdp - name: Install staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest @@ -99,20 +78,7 @@ jobs: go-version: 1.19 - name: Install libbpf and libxdp - run: | - sudo apt update - sudo apt install -y wget build-essential golang - sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf1_1.1.0-1_amd64.deb - sudo wget http://security.ubuntu.com/ubuntu/pool/main/libb/libbpf/libbpf-dev_1.1.0-1_amd64.deb - sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp1_1.3.0-2ubuntu2_amd64.deb - sudo wget https://mirrors.edge.kernel.org/ubuntu/pool/main/x/xdp-tools/libxdp-dev_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y ./libbpf1_1.1.0-1_amd64.deb - sudo apt install -y ./libbpf-dev_1.1.0-1_amd64.deb - sudo apt install -y ./libxdp1_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y ./libxdp-dev_1.3.0-2ubuntu2_amd64.deb - sudo apt install -y clang - sudo apt install -y llvm - sudo apt install -y gcc-multilib + run: make install-xdp - name: unit-tests run: make test