This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
Add linux-aarch64 GitHub actions via QEMU (#135) #3
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
name: test-linux-x86_64 | |
on: [push, pull_request] | |
jobs: | |
test-linux-x86_64: | |
runs-on: ubuntu-latest | |
env: | |
BUILD_PATH: ${{ github.workspace }}/build | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes ninja-build cmake bison ragel gperf build-essential | |
mkdir -p $BUILD_PATH/install-ext/{lib,bin} | |
cd $BUILD_PATH/install-ext/lib | |
curl -O https://www.antlr.org/download/antlr-4.11.1-complete.jar | |
cd $BUILD_PATH | |
echo '#!/bin/bash | |
java -Xmx500M -cp "${BUILD_PATH}/install-ext/lib/antlr-4.11.1-complete.jar:$CLASSPATH" org.antlr.v4.Tool $@' > $BUILD_PATH/install-ext/bin/antlr4 | |
chmod u+x $BUILD_PATH/install-ext/bin/antlr4 | |
- name: configure | |
run: | | |
cd $BUILD_PATH | |
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DANTLR_COMMAND_LINE=$BUILD_PATH/install-ext/bin/antlr4 .. | |
- name: build | |
run: | | |
cd $BUILD_PATH | |
cmake --build . | |
- name: test | |
run: | | |
cd $BUILD_PATH | |
ctest -C Debug -T test --output-on-failure |