Skip to content

Commit 84da33b

Browse files
committed
Github actions WIP
1 parent c267766 commit 84da33b

File tree

3 files changed

+75
-86
lines changed

3 files changed

+75
-86
lines changed

.github/workflows/build.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Build and test
12+
runs-on: ${{ matrix.os }}-latest
13+
env:
14+
OS_NAME: ${{ matrix.os_name }}
15+
HOMEBREW_NO_AUTO_UPDATE: 1
16+
WINDOWS_SBCL_PATH: "C:/Program Files/Steel Bank Common Lisp/1.4.14"
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- os: ubuntu
22+
os_name: linux
23+
bundle_ext: tar.gz
24+
make_build_target: all
25+
shen_exe: ./shen
26+
prebuilt_shen_version: 3.0.2
27+
- os: macos
28+
os_name: macos
29+
bundle_ext: tar.gz
30+
make_build_target: sbcl
31+
shen_exe: ./shen
32+
prebuilt_shen_version: 3.0.2
33+
- os: windows
34+
os_name: windows
35+
bundle_ext: zip
36+
make_build_target: sbcl
37+
sbcl_path: "C:/Program Files/Steel Bank Common Lisp/1.4.14"
38+
shen_exe: ./shen.exe
39+
prebuilt_shen_version: 3.0.2
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Setup dependencies (Linux)
43+
if: ${{ matrix.os == 'ubuntu' }}
44+
run: |
45+
sudo apt install -y sbcl clisp ecl libffi-dev
46+
wget http://mr.gy/blog/clozure-cl_1.11_amd64.deb
47+
sudo dpkg -i clozure-cl_1.11_amd64.deb
48+
- name: Setup dependencies (MacOS)
49+
if: ${{ matrix.os == 'macos' }}
50+
run: brew install sbcl
51+
- name: Setup dependencies (Windows)
52+
if: ${{ matrix.os == 'windows' }}
53+
run: |
54+
choco install make
55+
curl -L "https://netcologne.dl.sourceforge.net/project/sbcl/sbcl/1.4.14/sbcl-1.4.14-x86-64-windows-binary.msi" -o sbcl.msi
56+
powershell -Command "Start-Process msiexec.exe -Wait -ArgumentList '/i sbcl.msi /qn'"
57+
- name: Fetch precompiled Shen (Linux and macOS)
58+
if: ${{ matrix.os == 'ubuntu' || matrix.os == 'macos' }}
59+
run: |
60+
wget "https://github.com/Shen-Language/shen-cl/releases/download/v${{ matrix.prebuilt_shen_version }}/shen-cl-v${{ matrix.prebuilt_shen_version }}-${{ matrix.os_name }}-prebuilt.tar.gz"
61+
tar xzf "shen-cl-v${{ matrix.prebuilt_shen_version }}-${{ matrix.os_name }}-prebuilt.tar.gz" shen
62+
- name: Fetch precompiled Shen (Windoes)
63+
if: ${{ matrix.os == 'windows' }}
64+
run: |
65+
curl -L "https://github.com/Shen-Language/shen-cl/releases/download/v${{ matrix.prebuilt_shen_version }}/shen-cl-v${{ matrix.prebuilt_shen_version }}-windows-prebuilt.zip" -o "shen-cl-v${{ matrix.prebuilt_shen_version }}-windows-prebuilt.zip"
66+
7z e "shen-cl-v${{ matrix.prebuilt_shen_version }}-windows-prebuilt.zip" shen.exe
67+
- name: Fetch kernel
68+
run: make fetch
69+
- name: Precompile code
70+
run: make precompile SHEN=${{ matrix.shen_exe }}
71+
- name: Build and test
72+
run: make ${{ matrix.make_build_target }}

.travis.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ else
4242
Slash=/
4343
ArchiveSuffix=.tar.gz
4444
BinarySuffix=
45-
All=clisp ccl ecl sbcl
45+
All=ccl ecl sbcl
4646
ifeq ($(OSName),freebsd)
4747
All=ccl ecl sbcl
4848
else ifeq ($(OSName),openbsd)
@@ -57,8 +57,8 @@ CLISP=clisp
5757
ECL=ecl
5858
SBCL=sbcl
5959

60-
ifeq ($(TRAVIS_OS_NAME),windows)
61-
SBCL="$(SBCL_PATH)/sbcl.exe" --core "$(SBCL_PATH)/sbcl.core"
60+
ifeq ($(OS_NAME),windows)
61+
SBCL="$(WINDOWS_SBCL_PATH:)/sbcl.exe" --core "$(WINDOWS_SBCL_PATH:)/sbcl.core"
6262
endif
6363

6464
#

0 commit comments

Comments
 (0)