Merge pull request #6 from m1el/m1el-patch-1

Create gitgub workflow
This commit is contained in:
m1el 2024-03-11 13:46:07 +02:00 committed by GitHub
commit 3aef796bd5
2 changed files with 21 additions and 2 deletions

19
.github/workflows/c-cpp.yml vendored Normal file
View file

@ -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

View file

@ -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
hbas