Skip to content

Commit

Permalink
fix: Install antlr the hogql-way
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Nov 7, 2023
1 parent e9ed0c5 commit 40bced4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/actions/run-backend-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,21 @@ runs:
- name: Install SAML (python3-saml) dependencies
shell: bash
run: |
sudo apt-get update && sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl libantlr4-runtime-dev
sudo apt-get update && sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
- name: Install antlr 4.13 (required by hoql_parser)
shell: bash
run: |
curl https://www.antlr.org/download/antlr4-cpp-runtime-4.13.1-source.zip --output antlr4-source.zip
anltr_known_md5sum="c875c148991aacd043f733827644a76f"
antlr_found_ms5sum="$(md5sum antlr4-source.zip | cut -d' ' -f1)"
if [[ "$anltr_known_md5sum" != "$antlr_found_ms5sum" ]]; then exit 64; fi
unzip antlr4-source.zip -d antlr4-source && cd antlr4-source
cmake .
DESTDIR=out make install
cp -r out/usr/local/include/antlr4-runtime /usr/include/
cp out/usr/local/lib64/libantlr4-runtime.so* /usr/lib64/
ldconfig
- uses: syphar/restore-virtualenv@v1
id: cache-backend-tests
Expand Down

0 comments on commit 40bced4

Please sign in to comment.