-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new workflow to build and test on x8664 Linux
- Loading branch information
Showing
1 changed file
with
55 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,55 @@ | ||
name: Build and test | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
URL: https://github.com/Clozure/ccl/releases/latest/download/linuxx86.tar.gz | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out source | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ccl | ||
|
||
- name: Fetch bootstrapping binaries | ||
run: | | ||
curl --no-progress-meter -L -O ${{ env.URL }} | ||
- name: Install bootstrapping binaries | ||
run: | | ||
cd ccl | ||
tar xf ../linuxx86.tar.gz | ||
- name: Compile lisp kernel | ||
run: | | ||
cd ccl/lisp-kernel/linuxx8664 | ||
make | ||
- name: Rebuild CCL | ||
run: | | ||
cd ccl | ||
./lx86cl64 --batch --quiet -n -e '(rebuild-ccl :clean t)' </dev/null | ||
# Now see if it works to start up the just-compiled lisp. | ||
# Note that "git describe" doesn't work in a shallow clone | ||
# (because we don't have any tags), so we don't expect to see the | ||
# usual version like "Version 1.12.2 (v1.12.2-27-gae44c6ad)" in the | ||
# welcome banner. | ||
./lx86cl64 --batch -n </dev/null | ||
- name: Check out tests | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Clozure/ccl-tests | ||
path: ccl-tests | ||
|
||
- name: Run tests | ||
run: | | ||
cd ccl-tests | ||
make CCL=../ccl/lx86cl64 | ||
|