Skip to content

Commit

Permalink
github: add CMake and Windows workflow (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Mar 2, 2022
1 parent 8773fe5 commit e0a327f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cmake_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake and Windows

on: [push, pull_request]

jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows (VS17 2022)",
os: windows-latest,
cc: "cl",
cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
generators: "Visual Studio 17 2022"
}

steps:
- uses: actions/checkout@v2

- name: Install deps
run: |
choco install ninja cmake openssl
ninja --version
cmake --version
openssl version
- name: Build
shell: bash
run: |
cmake -S . -B . -G "${{ matrix.config.generators }}"
cmake --build .

0 comments on commit e0a327f

Please sign in to comment.