Skip to content

Commit d4192f6

Browse files
authored
ci: run tests on Windows (#14)
1 parent 2d44247 commit d4192f6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
runs-on: [ubuntu-latest, macos-latest]
15+
runs-on: [ubuntu-latest, macos-latest, windows-latest]
1616

1717
name: Check on ${{ matrix.runs-on }}
1818

1919
steps:
2020
- uses: actions/checkout@v2
2121
- uses: excitedleigh/[email protected]
22+
23+
- name: Prepare compiler environment (Windows)
24+
if: runner.os == 'Windows'
25+
uses: ilammy/msvc-dev-cmd@v1
26+
2227
- run: nox --force-color

projects/hello-pybind11/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ include(FetchContent)
1010

1111
FetchContent_Declare(
1212
pybind11
13-
GIT_REPOSITORY https://github.com/pybind/pybind11
14-
GIT_TAG v2.6.2
13+
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.6.2.tar.gz
14+
URL_HASH SHA256=8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2
1515
)
1616
FetchContent_MakeAvailable(pybind11)
1717

0 commit comments

Comments
 (0)