diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml index 5a7c5b855b..70fd13fae2 100644 --- a/.github/workflows/commit-ci.yml +++ b/.github/workflows/commit-ci.yml @@ -33,3 +33,17 @@ jobs: - name: Unit test run: make xcode/test + windows: + runs-on: windows-latest + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: "recursive" + + - name: Install dependency + run: .\action-install-windows.bat + + - name: Unit test + run: .\build.bat test diff --git a/appveyor_build_boost.bat b/action-build-boost.bat similarity index 100% rename from appveyor_build_boost.bat rename to action-build-boost.bat diff --git a/appveyor_build_thirdparty.bat b/action-build-thirdparty.bat similarity index 100% rename from appveyor_build_thirdparty.bat rename to action-build-thirdparty.bat diff --git a/appveyor.install.bat b/action-install-windows.bat similarity index 70% rename from appveyor.install.bat rename to action-install-windows.bat index 7bc72cc5e5..c82901d1fc 100644 --- a/appveyor.install.bat +++ b/action-install-windows.bat @@ -1,9 +1,9 @@ setlocal -call appveyor_build_boost.bat +call action-build-boost.bat if errorlevel 1 goto error -call appveyor_build_thirdparty.bat +call action-build-thirdparty.bat if errorlevel 1 goto error if defined RIME_PLUGINS ( @@ -24,7 +24,7 @@ echo "plugin: %slug%" set plugin_project=%slug:*/=% set plugin_dir=plugins/%plugin_project:librime-=% git clone --depth 1 "https://github.com/%slug%.git" %plugin_dir% -if exist %plugin_dir%\appveyor.install.bat ( - call %plugin_dir%\appveyor.install.bat +if exist %plugin_dir%\action.install.bat ( + call %plugin_dir%\action.install.bat ) exit /b