Skip to content

Windows

Windows #80

Workflow file for this run

name: Windows
on:
push:
schedule:
- cron: "0 2 * * 6" # every sunday at 2am
workflow_dispatch:
jobs:
ci:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config -l
echo "---"
git config --global core.autocrlf false
git config --global core.eol lf
echo "---"
git config -l
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Cygwin
shell: cmd
run: |
choco config get cacheLocation
choco install --no-progress cygwin
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P gcc-core,gcc-g++,make,cmake
- name: Check LongPathsEnabled
run: |
(Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled
- name: Test
shell: cmd
run: |
cmd /V /C "set DIR=%CD%\Sireum&& set SIREUM_V=master&& (if exist !DIR! rd /S /Q !DIR!) && md !DIR!\bin && cd !DIR!\bin && curl -JLso init.bat https://raw.githubusercontent.com/sireum/kekinian/!SIREUM_V!/bin/init.bat && init.bat"
set SIREUM_HOME=%CD%\Sireum
set PATH=%SIREUM_HOME%\bin;%PATH%
set errorlevel=
call sireum.bat || goto :error
dir
call .ci\test.cmd || goto :error
goto :EOF
:error
echo Exit Codeg %errorlevel%
exit /b %errorlevel%