diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 57ae2e7..8faad56 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -10,58 +10,59 @@ jobs: run: shell: bash steps: - - name: Setup V - run: | - curl -Lo v_windows.zip https://github.com/vlang/v/releases/latest/download/v_windows.zip - 7z x v_windows.zip - mv v ~/v - ~/v/v symlink - - run: v -showcc self && v doctor - - uses: actions/checkout@v4 - with: - path: vibe - - name: Setup V module - run: | - mv vibe ~/.vmodules/vibe - v ~/.vmodules/vibe/curl/build.vsh --silent - - name: Save cache - uses: actions/cache/save@v4 - with: - path: | - ~/v - ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} - - test: - needs: setup - runs-on: windows-latest - env: - VFLAGS: -cg -cc gcc - steps: - - name: Restore cache - uses: actions/cache/restore@v4 - with: - path: | - ~/v - ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} - fail-on-cache-miss: true - - name: Setup V - run: ~/v/v symlink - - run: ls ~/.vmodules/vibe/curl/libcurl/bin - - run: | - $env:PATH += ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin" - [System.Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin", [System.EnvironmentVariableTarget]::Machine) - [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine) - - name: Run tests - # echo $HOME - # [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine) - # v -stats test vibe - # set PATH=%PATH%;C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin - # echo %PATH% - run: | - $env:PATH += ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin" - [System.Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin", [System.EnvironmentVariableTarget]::Machine) - [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine) - cd ~/.vmodules - v -stats test vibe/src/_tests_get_test.v + - run: curl --version + # - name: Setup V + # run: | + # curl -Lo v_windows.zip https://github.com/vlang/v/releases/latest/download/v_windows.zip + # 7z x v_windows.zip + # mv v ~/v + # ~/v/v symlink + # - run: v -showcc self && v doctor + # - uses: actions/checkout@v4 + # with: + # path: vibe + # - name: Setup V module + # run: | + # mv vibe ~/.vmodules/vibe + # v ~/.vmodules/vibe/curl/build.vsh --silent + # - name: Save cache + # uses: actions/cache/save@v4 + # with: + # path: | + # ~/v + # ~/.vmodules + # key: ${{ runner.os }}-${{ github.sha }} + # + # test: + # needs: setup + # runs-on: windows-latest + # env: + # VFLAGS: -cg -cc gcc + # steps: + # - name: Restore cache + # uses: actions/cache/restore@v4 + # with: + # path: | + # ~/v + # ~/.vmodules + # key: ${{ runner.os }}-${{ github.sha }} + # fail-on-cache-miss: true + # - name: Setup V + # run: ~/v/v symlink + # - run: ls ~/.vmodules/vibe/curl/libcurl/bin + # - run: | + # $env:PATH += ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin" + # [System.Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin", [System.EnvironmentVariableTarget]::Machine) + # [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine) + # - name: Run tests + # # echo $HOME + # # [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine) + # # v -stats test vibe + # # set PATH=%PATH%;C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin + # # echo %PATH% + # run: | + # $env:PATH += ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin" + # [System.Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:%HOMEPATH%\.vmodules\vibe\curl\libcurl\bin", [System.EnvironmentVariableTarget]::Machine) + # [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine) + # cd ~/.vmodules + # v -stats test vibe/src/_tests_get_test.v