crpc/.gitea/workflows/build.yaml
2023-12-03 08:04:44 +08:00

32 lines
1000 B
YAML

name: build-crpc
on:
- push
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type:
- Debug
- Release
toolchain:
- hisiv500.toolchain.cmake
- himix200.toolchain.cmake
- mips64el-linux-gnuabi64.toolchain.cmake
- mipsel-openwrt-linux-musl.toolchain.cmake
- mipsel-openwrt-linux.toolchain.cmake
- host.toolchain.cmake
steps:
- name: Install Dependencies
run: |
apt-get update -y
apt-get install -y \
cmake make g++ libssl-dev pkg-config autoconf libtool libantlr4-runtime-dev
- uses: actions/checkout@v4
- name: Generate Lexer and Parser
run: |
wget https://www.antlr.org/download/antlr-4.13.1-complete.jar -o antlr.jar
cd ${{ github.workspace }}/src/grammar
java -jar antlr.jar -Dlanguage=Cpp -o ./ ProtoLexer.g4
java -jar antlr.jar -Dlanguage=Cpp -o ./ ProtoParser.g4