Skip to content

Commit

Permalink
Build the ANTLR4 runtime from source.
Browse files Browse the repository at this point in the history
Signed-off-by: Dusty DeWeese <[email protected]>
  • Loading branch information
HackerFoo committed Dec 15, 2020
1 parent 4ac13e2 commit 1926fcc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/kokoro/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion .github/kokoro/steps/hostsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ sudo apt-get install -y \
graphviz \
inkscape \
jq \
libantlr4-runtime-dev \
make \
ninja-build \
nodejs \
Expand Down
22 changes: 22 additions & 0 deletions .github/kokoro/steps/install_antlr4_runtime.sh
Original file line number Diff line number Diff line change
@@ -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 "----------------------------------------"

0 comments on commit 1926fcc

Please sign in to comment.