Skip to content

Commit

Permalink
curl --version
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent 6a28ded commit 08538f0
Showing 1 changed file with 56 additions and 55 deletions.
111 changes: 56 additions & 55 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 08538f0

Please # to comment.