path' #263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/checkout@v1 | |
with: | |
repository: sbcl/sbcl | |
ref: sbcl-2.3.7 | |
path: sbcl | |
- uses: msys2/setup-msys2@v2 | |
with: | |
install: mingw-w64-x86_64-gcc make diffutils git python3 dos2unix | |
- name: install host sbcl | |
shell: pwsh | |
working-directory: ../sbcl | |
run: | | |
choco install sbcl -source tools-for-build | |
- name: build sbcl | |
working-directory: ../sbcl | |
env: | |
SBCL_HOME: "/c/Program Files/Steel Bank Common Lisp/1.4.14" | |
run: | | |
PATH=$PATH:"/c/Program Files/Steel Bank Common Lisp/1.4.14" | |
export PATH | |
dos2unix ../sbcl-librarian/.github/workflows/non-static-lossage-handler-win32.patch | |
git apply ../sbcl-librarian/.github/workflows/non-static-lossage-handler-win32.patch | |
./make.sh --xc-host='sbcl --lose-on-corruption --disable-ldb --disable-debugger' --with-sb-linkable-runtime | |
- name: install quicklisp | |
working-directory: ../sbcl | |
run: | | |
curl -O https://beta.quicklisp.org/quicklisp.lisp | |
./run-sbcl.sh --load quicklisp.lisp --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))" --eval "(quit)" | |
- name: build and run example | |
working-directory: examples/libcalc | |
env: | |
SBCL_SRC: ${{ github.workspace }}/../sbcl | |
CL_SOURCE_REGISTRY: "${{ github.workspace }}//" | |
run: | | |
$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 -L. | |
mv libcalc.dll $MSYSTEM_PREFIX/bin | |
cp libcalc.core $MSYSTEM_PREFIX/bin | |
echo "(+ 1 2)" | ./example.exe | |
python --version | |
echo $PATH | |
echo "(+ 1 2)" | python ./example.py | |
python ./exhaust_heap.py |