From 94c5192c92bae2ff1ec8035480b8798670c40e3a Mon Sep 17 00:00:00 2001 From: m1el Date: Mon, 11 Mar 2024 13:42:46 +0200 Subject: [PATCH 1/2] Create git workflow --- .github/workflows/c-cpp.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..c95ff2a --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,19 @@ +name: C CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: make + run: make + - name: example + run: make example From c57f615e0145a61a78c7928ccb4fa38c03f10931 Mon Sep 17 00:00:00 2001 From: m1el Date: Mon, 11 Mar 2024 13:45:44 +0200 Subject: [PATCH 2/2] Update Makefile -- fix path to binary --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bed608a..c3346c6 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,11 @@ build/hbas: build src/hbas.c ${CC} ${CFLAGS} ${CFLAGS_EXTRA} src/hbas.c -o build/hbas build/example.hbf: build build/hbas examples/example.S - ./hbas < examples/example.S > build/example.hbf + ./build/hbas < examples/example.S > build/example.hbf xxd build/example.hbf clean: rm -rf build all: - hbas \ No newline at end of file + hbas