Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CCL-test.yml #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/CCL-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# @file CCL-test.yml
---
name: CCL-Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Download ccl
run: |
curl -o ccl.tar.gz --location 'https://github.com/Clozure/ccl/releases/download/v1.12/ccl-1.12-linuxx86.tar.gz'
tar -xzf ccl.tar.gz

- name: Download quicklisp
run: curl -o quicklisp.lisp 'https://beta.quicklisp.org/quicklisp.lisp'

- name: Install quicklisp
run: |
./ccl/lx86cl64 --load quicklisp.lisp --eval "(quicklisp-quickstart:install :path \"$GITHUB_WORKSPACE/quicklisp/\") (quit)"
./ccl/lx86cl64 --load "$GITHUB_WORKSPACE/quicklisp/setup.lisp" --eval '(ql-util:without-prompting (ql:add-to-init-file)) (quit)'

- name: Download repo
uses: actions/checkout@v2
with:
path: quicklisp/local-projects/grpc

- name: Install cmake & required tooling
run: |
sudo apt install -y cmake
sudo apt install -y build-essential autoconf libtool pkg-config

- name: Clone gRPC Github repo
run: git clone --recurse-submodules -b v1.46.3 --depth 1 --shallow-submodules https://github.com/grpc/grpc

- name: Build and install gRPC c++
run: |
cd grpc &&
mkdir cmake/build &&
pushd cmake/build &&
cmake -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ ../.. &&
make -j 4 &&
sudo make install &&
sudo ldconfig &&
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH &&
cd $GITHUB_WORKSPACE/quicklisp/local-projects/grpc &&
sudo make &&
popd

- name: Install cl-protobufs (really only need protoc)
run: |
cd $GITHUB_WORKSPACE/quicklisp/local-projects
git clone https://github.com/qitab/cl-protobufs
cd cl-protobufs/protoc
PROTOC_ROOT=/usr/local make
echo "::add-path:$GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc/"
echo $PATH

- name: Start gRPC
run: |
export PATH="$PATH:$GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc/"
./ccl/lx86cl64 --eval '(ql:quickload :grpc)' >> report
cat report
! grep -q "not ok" report