Skip to content

Commit

Permalink
GitHub CI: Start working on getting a Windows CI working
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <[email protected]>
  • Loading branch information
imikejackson committed May 22, 2024
1 parent d4f6f91 commit 83e9c83
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: windows

on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master

jobs:
build:
env:
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
strategy:
fail-fast: false
matrix:
os:
- windows-2022
toolset:
- v142
- v143
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Add C++ Problem Matcher
uses: ammaraskar/[email protected]
- name: Setup Build Environment
uses: ilammy/[email protected]
with:
vsversion: 2022
- name: Setup NuGet Credentials
shell: bash
run: |
`vcpkg fetch nuget | tail -n 1` \
sources add \
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "BlueQuartzSoftware" \
-password "${{secrets.GITHUB_TOKEN}}"
`vcpkg fetch nuget | tail -n 1` \
setapikey "${{secrets.GITHUB_TOKEN}}" \
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json"
- name: Install Sphinx
run: |
pip install sphinx myst-parser sphinx-markdown-tables sphinx_rtd_theme numpy
- name: Configure
run: |
cmake --preset ci-windows-${{matrix.toolset}} ${{github.workspace}} -T ${{matrix.toolset}}
- name: Build
run: |
cmake --build --preset ci-windows-${{matrix.toolset}}
- name: Test
run: |
ctest --preset ci-windows-${{matrix.toolset}}

0 comments on commit 83e9c83

Please sign in to comment.