CI: Update ubuntu.yml and add windows.yml

This commit is contained in:
Syping 2021-11-12 03:06:37 +01:00
parent b47456844a
commit 56314c2738
2 changed files with 26 additions and 1 deletions

View File

@ -17,7 +17,9 @@ jobs:
with:
submodules: recursive
- name: Install packages
run: sudo apt-get update -qq && sudo apt-get install cmake git gcc g++ make ninja-build -qq
run: |
sudo apt-get update -qq
sudo apt-get install cmake git gcc g++ make ninja-build -qq
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
- name: Build

23
.github/workflows/windows.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}