add test on windows action
This commit is contained in:
3
.github/workflows/linux_test.yml
vendored
3
.github/workflows/linux_test.yml
vendored
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
name: test on Linux
|
name: test on Linux
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -14,4 +13,4 @@ jobs:
|
|||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: test
|
- name: test
|
||||||
run: bash ./test.sh
|
run: bash ./script/test.sh
|
||||||
16
.github/workflows/windows_test.yml
vendored
Normal file
16
.github/workflows/windows_test.yml
vendored
Normal 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
5
script/test_windows.ps1
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
cmake build -B build .
|
||||||
|
Set-Location -Path "./build"
|
||||||
|
make
|
||||||
|
ctest
|
||||||
|
Set-Location -Path ".."
|
||||||
Reference in New Issue
Block a user