From 1926fccf05d2dc70b87ef9aab14d552cd32fdf61 Mon Sep 17 00:00:00 2001 From: Dusty DeWeese Date: Mon, 14 Dec 2020 16:33:52 -0800 Subject: [PATCH] Build the ANTLR4 runtime from source. Signed-off-by: Dusty DeWeese --- .github/kokoro/common.sh | 1 + .github/kokoro/steps/hostsetup.sh | 1 - .../kokoro/steps/install_antlr4_runtime.sh | 22 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 .github/kokoro/steps/install_antlr4_runtime.sh diff --git a/.github/kokoro/common.sh b/.github/kokoro/common.sh index fa7de164f5..1a66a97f0e 100644 --- a/.github/kokoro/common.sh +++ b/.github/kokoro/common.sh @@ -29,5 +29,6 @@ cd github/$KOKORO_DIR/ # Run the common setup steps source ./.github/kokoro/steps/movehome.sh source ./.github/kokoro/steps/hostsetup.sh +source ./.github/kokoro/steps/install_antlr4_runtime.sh source ./.github/kokoro/steps/hostinfo.sh source ./.github/kokoro/steps/git.sh diff --git a/.github/kokoro/steps/hostsetup.sh b/.github/kokoro/steps/hostsetup.sh index e06939979f..ad22109fba 100755 --- a/.github/kokoro/steps/hostsetup.sh +++ b/.github/kokoro/steps/hostsetup.sh @@ -55,7 +55,6 @@ sudo apt-get install -y \ graphviz \ inkscape \ jq \ - libantlr4-runtime-dev \ make \ ninja-build \ nodejs \ diff --git a/.github/kokoro/steps/install_antlr4_runtime.sh b/.github/kokoro/steps/install_antlr4_runtime.sh new file mode 100755 index 0000000000..113405f384 --- /dev/null +++ b/.github/kokoro/steps/install_antlr4_runtime.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +echo +echo "========================================" +echo "Host install antlr4-runtime" +echo "----------------------------------------" + +VERSION=4.9 + +mkdir antlr4-cpp-runtime-${VERSION} +cd antlr4-cpp-runtime-${VERSION} +wget https://www.antlr.org/download/antlr4-cpp-runtime-${VERSION}-source.zip +unzip antlr4-cpp-runtime-${VERSION}-source.zip +mkdir build +cd build +cmake .. +make -j +sudo make install + +echo "----------------------------------------"