-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Linux | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v1 | ||
with: | ||
repository: sbcl/sbcl | ||
ref: sbcl-2.4.4 | ||
path: sbcl | ||
- name: install host sbcl | ||
run: | | ||
sudo apt-get -qq update | true | ||
sudo apt-get -qq install sbcl libcapstone-dev | ||
- name: build sbcl | ||
working-directory: ../sbcl | ||
env: | ||
SBCL_MAKE_TARGET_2_OPTIONS: --disable-ldb --disable-debugger | ||
run: | | ||
./make.sh --xc-host='sbcl --dynamic-space-size 700MB --lose-on-corruption --disable-ldb --disable-debugger' | ||
./make-shared-library.sh | ||
- 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 | ||
LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime:. | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime:. | ||
CL_SOURCE_REGISTRY: "${{ github.workspace }}//" | ||
run: | | ||
$SBCL_SRC/run-sbcl.sh --script script.lisp | ||
gcc -Wall -fPIC -shared -o libcalc.so libcalc.c -lsbcl | ||
gcc -Wall -o example example.c -lcalc -lsbcl | ||
echo "(+ 1 2)" | ./example | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Mac | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.arch == 'arm64' && 'macos-14' || 'macOS-13' }} | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
arch: [arm64] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v1 | ||
with: | ||
repository: sbcl/sbcl | ||
ref: ${{ matrix.arch == 'arm64' && 'sbcl-2.2.4' || 'x86-null-tn' }} | ||
path: sbcl | ||
- name: install host sbcl | ||
run: brew install sbcl | ||
- name: build | ||
working-directory: ../sbcl | ||
env: | ||
SBCL_MAKE_TARGET_2_OPTIONS: --disable-ldb --disable-debugger | ||
run: | | ||
./make.sh --xc-host='sbcl --lose-on-corruption --disable-ldb --disable-debugger' | ||
./make-shared-library.sh | ||
- 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 | ||
LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime:. | ||
DYLD_LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime:. | ||
CL_SOURCE_REGISTRY: "${{ github.workspace }}//" | ||
run: | | ||
$SBCL_SRC/run-sbcl.sh --script script.lisp | ||
gcc -Wall -fPIC -shared -o libcalc.dylib libcalc.c -lsbcl | ||
gcc -Wall -o example example.c -lcalc -lsbcl | ||
echo "(+ 1 2)" | ./example | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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.4.4 | ||
path: sbcl | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
install: mingw-w64-x86_64-gcc make diffutils git | ||
|
||
- 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 | ||
./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 | ||
LIBRARY_PATH: ${{ github.workspace }}/../sbcl/src/runtime;. | ||
CL_SOURCE_REGISTRY: "${{ github.workspace }}//" | ||
run: | | ||
$SBCL_SRC/run-sbcl.sh --script script.lisp | ||
gcc -Wall -fPIC -shared -o 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 |