Skip to content

Commit

Permalink
Try Windows and Linux again
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-s committed May 14, 2024
1 parent 2ba9c44 commit d2d76e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
env:
SBCL_MAKE_TARGET_2_OPTIONS: --disable-ldb --disable-debugger
run: |
git apply ${{ github.workspace }}/.github/workflows/non-static-lossage-handler.patch
./make.sh --xc-host='sbcl --dynamic-space-size 700MB --lose-on-corruption --disable-ldb --disable-debugger'
./make-shared-library.sh
- name: install quicklisp
Expand All @@ -42,4 +43,6 @@ jobs:
gcc -Wall -fPIC -shared -o libcalc.so libcalc.c -lsbcl
gcc -Wall -o example example.c -lcalc -lsbcl
echo "(+ 1 2)" | ./example
echo "(+ 1 2)" | python ./example.py
python ./exhaust_heap.py
5 changes: 4 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
run: |
PATH=$PATH:"/c/Program Files/Steel Bank Common Lisp/1.4.14"
export PATH
git apply ${{ github.workspace }}/.github/workflows/non-static-lossage-handler.patch
./make.sh --xc-host='sbcl --lose-on-corruption --disable-ldb --disable-debugger' --with-sb-linkable-runtime
- name: install quicklisp
working-directory: ../sbcl
Expand All @@ -51,4 +52,6 @@ jobs:
$SBCL_SRC/run-sbcl.sh --script script.lisp
gcc -Wall -fPIC -shared -Wl,--export-all-symbols -o libcalc.dll libcalc.c -Wl,--whole-archive $SBCL_SRC/src/runtime/libsbcl.a -Wl,--no-whole-archive -ladvapi32 -lsynchronization -lws2_32 -lzstd
gcc -Wall -o example example.c -lcalc
echo "(+ 1 2)" | ./example.exe
echo "(+ 1 2)" | ./example.exe
echo "(+ 1 2)" | python ./example.py
python ./exhaust_heap.py
5 changes: 2 additions & 3 deletions examples/libcalc/exhaust_heap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
import sys

if __name__ == '__main__':
assert(libcalc.calc_exhaust_heap() == 2)
sys.stdout.flush()
print("heap exhausted")
if libcalc.calc_exhaust_heap() == 2:
print("heap exhausted")

0 comments on commit d2d76e4

Please sign in to comment.