Skip to content

ci: 自动构建流程 #16

ci: 自动构建流程

ci: 自动构建流程 #16

name: Compile project
on:
push:
branches: [ "linux" ]
pull_request:
branches: [ "linux" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependences
run: |
sudo apt-get update
sudo apt-get build-dep . -y
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j4