diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml index 88483ca..5a997eb 100644 --- a/.github/workflows/linux_test.yml +++ b/.github/workflows/linux_test.yml @@ -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 \ No newline at end of file + run: bash ./script/test.sh \ No newline at end of file diff --git a/.github/workflows/windows_test.yml b/.github/workflows/windows_test.yml new file mode 100644 index 0000000..ad6fc79 --- /dev/null +++ b/.github/workflows/windows_test.yml @@ -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 \ No newline at end of file diff --git a/test.sh b/script/test.sh similarity index 100% rename from test.sh rename to script/test.sh diff --git a/script/test_windows.ps1 b/script/test_windows.ps1 new file mode 100644 index 0000000..0f6d3c0 --- /dev/null +++ b/script/test_windows.ps1 @@ -0,0 +1,5 @@ +cmake build -B build . +Set-Location -Path "./build" +make +ctest +Set-Location -Path ".."