chore: fix CI (#2)

This commit is contained in:
mzz 2023-01-31 22:02:18 +08:00 committed by GitHub
parent acf9280177
commit 2cd2a2ec8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -85,7 +85,8 @@ jobs:
go-version: '^1.19'
- name: Install Dependencies
run: |
sudo apt-get update -y && sudo apt-get install -y clang llvm gcc-multilib
sudo apt-get update -y
sudo apt-get install -y clang llvm gcc-multilib libbpf-dev
- name: Get project dependencies
run: |

View File

@ -10,13 +10,7 @@ CLANG ?= clang
STRIP ?= llvm-strip
OUTPUT ?= dae
CFLAGS := -O2 -Wall -Werror $(CFLAGS)
GOARCH ?=
ifneq ($(GOARCH),)
TARGET ?= $(GOARCH)
else
TARGET ?= bpfel,bpfeb
endif
TARGET ?= bpfel,bpfeb
# Get version from .git.
date=$(shell git log -1 --format="%cd" --date=short | sed s/-//g)