Add static lib.

This commit is contained in:
Christoffer Lerno
2024-12-26 23:40:06 +01:00
committed by Christoffer Lerno
parent 08e8c9bf57
commit 291b26f230
5 changed files with 46 additions and 2 deletions

View File

@@ -326,6 +326,15 @@ jobs:
./a.out
../../../build/c3c compile-run test.c3 -L . -l add -z -Wl,-rpath=.
- name: Compile and run staticlib-test
run: |
cd resources/examples/staticlib-test
../../../build/c3c -vv static-lib add.c3
mv add.a libadd.a
cc test.c -L. -ladd
./a.out
../../../build/c3c compile-run test.c3 -L . -l add
- name: Compile run unit tests
run: |
cd test