diff options
author | Jun Zhang <jun@junz.org> | 2022-03-28 11:48:50 +0800 |
---|---|---|
committer | Jun Zhang <jun@junz.org> | 2022-03-28 11:48:50 +0800 |
commit | a287bf3fca8d1ffbdbc95971dcf0e3b9c6675e3e (patch) | |
tree | 94234a97ac6446f4e6788592d7356cad3ceb7b44 | |
parent | 21f744c631bbe2fe3389f3b2f733256fb343e959 (diff) |
Add Github Actions.
Signed-off-by: Jun Zhang <jun@junz.org>
-rw-r--r-- | .github/workflows/ci.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f578d0b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +env: + BUILD_TYPE : Release + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + - 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}} |