add test on windows action

This commit is contained in:
2024-11-02 13:25:55 +08:00
parent 0fa6097bbf
commit 8eb324ad23
4 changed files with 22 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
name: test on Linux
on:
@@ -14,4 +13,4 @@ jobs:
- name: checkout code
uses: actions/checkout@v4
- name: test
run: bash ./test.sh
run: bash ./script/test.sh

16
.github/workflows/windows_test.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: test on Windows
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: windows-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: test
run: ./script/test_windows.ps1

5
script/test_windows.ps1 Normal file
View File

@@ -0,0 +1,5 @@
cmake build -B build .
Set-Location -Path "./build"
make
ctest
Set-Location -Path ".."