feat: add build.yml

This commit is contained in:
Paul Pan 2022-10-02 14:21:12 +08:00 committed by Paul Pan
parent 228c7b653f
commit 503b5aa6c9

28
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: CMake
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y gperf
./build_libseccomp.sh
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}