Have cl-protobufs protoc use ABSL instead of relying on protocol buffer stubs #1287
Workflow file for this run
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
# @file ABCL-test.yml | |
--- | |
name: ABCL-Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update apt package list | |
run: sudo apt update | |
- name: Download ABCL | |
run: | | |
sudo apt install -y ant | |
git clone https://github.com/armedbear/abcl.git | |
cd abcl | |
ant | |
cd .. | |
- name: Download quicklisp | |
run: curl -o quicklisp.lisp 'https://beta.quicklisp.org/quicklisp.lisp' | |
- name: Install quicklisp | |
run: | | |
./abcl/abcl --batch --load quicklisp.lisp --eval "(quicklisp-quickstart:install :path \"$GITHUB_WORKSPACE/quicklisp/\") (quit)" | |
./abcl/abcl --batch --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/cl-protobufs | |
- name: Add cl-protobufs/protoc to path | |
run: echo "::add-path:$GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc/" | |
- name: Download and install protobuf | |
run: sudo apt install -y protobuf-compiler libprotobuf-dev libprotoc-dev | |
- name: Install protoc plug-in | |
run: cd $GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc && PROTOC_ROOT=/usr make | |
- name: Load and run tests | |
run: | | |
export PATH="$PATH:$GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc/" | |
./abcl/abcl --batch --eval '(ql:quickload :clunit2)' --eval '(ql:quickload :trivial-benchmark)' --eval '(ql:quickload :cl-base64)' --eval '(ql:quickload :local-time)' --eval '(ql:quickload :babel)' --eval '(setf clunit:*clunit-report-format* :tap)' --eval '(ql:quickload :cl-protobufs)' --eval '(asdf:test-system :cl-protobufs)' >> report | |
test -f report | |
cat report | |
! grep -q "not ok" report | |
grep -q "ok" report |