1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-04 03:02:02 +02:00

Use apt-get to setup antlr

This commit is contained in:
Tim Voronov 2020-06-22 17:50:17 -04:00
parent 2fc7e0bac8
commit e093c1fd3b

View File

@ -24,13 +24,8 @@ jobs:
env:
ANTLR_VERSION: 4.8
run: |
sudo curl -o /usr/local/lib/antlr-${ANTLR_VERSION}-complete.jar https://www.antlr.org/download/antlr-${ANTLR_VERSION}-complete.jar
export CLASSPATH=".:/usr/local/lib/antlr-${ANTLR_VERSION}-complete.jar:$CLASSPATH"
mkdir $HOME/antlr-bin
echo -e '#!/bin/bash\njava -jar /usr/local/lib/antlr-${ANTLR_VERSION}-complete.jar "$@"' > $HOME/antlr-bin/antlr
echo -e '#!/bin/bash\njava org.antlr.v4.gui.TestRig "$@"' > $HOME/antlr-bin/grun
chmod +x $HOME/antlr-bin/*
export PATH=$PATH:$HOME/antlr-bin
sudo apt-get install -y antlr4
alias antlr=antlr4
- name: Set up linters
run: go get -u github.com/mgechev/revive