From f15951cc2964daacac28ac07f3fb3d0bb4c320d0 Mon Sep 17 00:00:00 2001 From: ocfox Date: Thu, 23 Mar 2023 22:36:40 +0800 Subject: [PATCH] move template code to src --- .github/workflows/publish.yml | 6 ++++-- Makefile | 5 ++--- template.bpf.c => src/template.bpf.c | 0 template.h => src/template.h | 0 4 files changed, 6 insertions(+), 5 deletions(-) rename template.bpf.c => src/template.bpf.c (100%) rename template.h => src/template.h (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 41d9551..798147d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,13 +55,15 @@ jobs: wget https://github.com/eunomia-bpf/eunomia-bpf/releases/latest/download/ecc && chmod +x ./ecc - name: build package - run: ./ecc template.bpf.c template.h + run: | + cd src + ../ecc template.bpf.c template.h - name: Publish if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v1 with: - files: package.json + files: src/package.json prerelease: false tag_name: ${{ steps.set_version.outputs.result }} generate_release_notes: true diff --git a/Makefile b/Makefile index 0fbdf25..9b8e317 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ build: - ecc template.bpf.c template.h + cd src && ecc template.bpf.c template.h clean: - rm *.json - rm *.o + cd src && rm *.json *.o diff --git a/template.bpf.c b/src/template.bpf.c similarity index 100% rename from template.bpf.c rename to src/template.bpf.c diff --git a/template.h b/src/template.h similarity index 100% rename from template.h rename to src/template.h