Skip to content

add braft

add braft #62

Workflow file for this run

name: Linux
on:
push:
branches: [main]
paths-ignore: ['**.md', '**.txt']
pull_request:
branches: [main]
paths-ignore: ['**.md', '**.txt']
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04]
mode: [debug, releasedbg]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.mode }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
actions-cache-folder: '.xmake-cache'
- name: Installation
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip clang-format-16
sudo ln -s /usr/bin/clang-format-16 /usr/bin/clang-format
- name: Format
run: |
xmake format -f "**.h:**.cc:**.proto"
git diff --exit-code
- name: Build
run: |
xmake f -y -c -m ${{ matrix.mode }}
xmake b -v
env:
CC: gcc-13
CXX: g++-13
- name: Test
run: |
xmake test -v