commit
3aef796bd5
19
.github/workflows/c-cpp.yml
vendored
Normal file
19
.github/workflows/c-cpp.yml
vendored
Normal 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
|
4
Makefile
4
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
|
||||
hbas
|
||||
|
|
Loading…
Reference in a new issue