No public description #1628
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 SBCL-test.yml | |
--- | |
name: SBCL-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 sbcl | |
run: sudo apt install -y sbcl | |
- name: Download quicklisp | |
run: curl -o quicklisp.lisp 'https://beta.quicklisp.org/quicklisp.lisp' | |
- name: Install quicklisp | |
run: | | |
sbcl --noinform --non-interactive --load quicklisp.lisp --eval "(quicklisp-quickstart:install :path \"$GITHUB_WORKSPACE/quicklisp/\")" | |
sbcl --noinform --non-interactive --load "$GITHUB_WORKSPACE/quicklisp/setup.lisp" --eval '(ql-util:without-prompting (ql:add-to-init-file))' | |
- 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 Abseil | |
run: | | |
set -ex | |
git clone --recursive -b lts_2024_07_22 https://github.com/abseil/abseil-cpp $GITHUB_WORKSPACE/abseil-cpp | |
cd $GITHUB_WORKSPACE/abseil-cpp | |
sudo cmake . -DCMAKE_CXX_STANDARD=17 -DABSL_ENABLE_INSTALL=ON | |
sudo make -j20 | |
sudo make install | |
sudo ldconfig | |
- name: Download and install protobuf | |
run: | | |
git clone --recursive -b 28.x https://github.com/protocolbuffers/protobuf | |
cd protobuf/cmake | |
mkdir build | |
cd build | |
cmake -DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_ABSL_PROVIDER=package -DCMAKE_INSTALL_PREFIX=/usr/local/ ../.. | |
sudo make install -j20 | |
sudo ldconfig | |
- name: Install protoc plug-in | |
run: | | |
cd $GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc && | |
cmake . -DCMAKE_CXX_STANDARD=17 | |
cmake --build . --target install --parallel 16 | |
- name: Load and run tests | |
run: | | |
export PATH="$PATH:$GITHUB_WORKSPACE/quicklisp/local-projects/cl-protobufs/protoc/" | |
sbcl --noinform --non-interactive --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 |