@echo off

:: Validate GitHub CI's environment
if "%GITHUB_WORKSPACE%"=="" (
  echo Please define 'GITHUB_WORKSPACE' environment variable.
  exit /B 1
)

:: Call matching script for windows
call "%GITHUB_WORKSPACE%\ci\windows\%~n0.bat" "%~1"
if %errorlevel% neq 0 exit /b %errorlevel%
