diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7cd98048..50a7888e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -40,6 +40,7 @@ jobs: run: | $SBCL_SRC/run-sbcl.sh --script script.lisp mkdir lib + mv libcalc.core lib gcc -Wall -fPIC -shared -o lib/libcalc.so libcalc.c -lsbcl gcc -Wall -o example example.c -lcalc -lsbcl echo "(+ 1 2)" | ./example diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b6eb05a4..d36a8fdd 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -45,10 +45,12 @@ jobs: env: SBCL_SRC: ${{ github.workspace }}/../sbcl LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime;./lib + PATH: $PATH;${{ github.workspace }}/../sbcl/src/runtime;./lib CL_SOURCE_REGISTRY: "${{ github.workspace }}//" run: | $SBCL_SRC/run-sbcl.sh --script script.lisp mkdir lib + mv libcalc.core lib gcc -Wall -fPIC -shared -o lib/libcalc.dll libcalc.c -Wl,--export-all-symbols -Wl,--whole-archive -lsbcl -Wl,--no-whole-archive -ladvapi32 -lsynchronization -lws2_32 -lzstd gcc -Wall -o example example.c -lcalc echo "(+ 1 2)" | ./example.exe