From 2cd2a2ec8fecee07ebbdf133fad7d674557eed66 Mon Sep 17 00:00:00 2001 From: mzz <30586220+mzz2017@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:02:18 +0800 Subject: [PATCH] chore: fix CI (#2) --- .github/workflows/release.yml | 3 ++- Makefile | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 247be8f..a51f1f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | diff --git a/Makefile b/Makefile index e5d59c6..611d95b 100644 --- a/Makefile +++ b/Makefile @@ -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)