@pushd "%~dp0.." && setlocal
:: Keep in sync with .github\workflows\rust.yml
:: Nightly
@cargo +nightly >NUL 2>NUL || ver>NUL && goto :-nightly
@call "scripts\test-nightly.cmd" || goto :
:skip-nightly
:: MSRV
@call "scripts\test-msrv.cmd" || goto :
:: MSRV (i686)
@call "scripts\test-msrv-i686.cmd" || goto :
:: MSRV (WSL)
@"%WINDIR%\System32\bash" --version >NUL 2>NUL || ver>NUL && goto :-msrv-linux
@call "scripts\test-msrv-wsl.cmd" || goto :
:skip-msrv-linux
:: Stable
@call "scripts\test-stable.cmd" || goto :
:die
@popd && endlocal && exit /b %ERRORLEVEL%