Browse Source

CI: Update ubuntu.yml and add windows.yml

master
Syping 2 weeks ago
parent
commit
56314c2738
  1. 4
      .github/workflows/ubuntu.yml
  2. 23
      .github/workflows/windows.yml

4
.github/workflows/ubuntu.yml

@ -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

@ -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/[email protected]
with:
submodules: recursive
- uses: ilammy/[email protected]
- 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}}
Loading…
Cancel
Save