mirror of
https://github.com/vlang/v.git
synced 2025-09-16 10:57:25 -04:00
ci: simplify prebuilt.yml, make it usable for manual runs too
This commit is contained in:
parent
9a9a6b7f2c
commit
20c470a2c3
24
.github/workflows/prebuilt.yml
vendored
24
.github/workflows/prebuilt.yml
vendored
@ -12,8 +12,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Download V
|
- name: Download V
|
||||||
run: |
|
run: |
|
||||||
tag=${GITHUB_REF##*/}
|
wget https://github.com/vlang/v/releases/latest/download/v_linux.zip
|
||||||
wget https://github.com/vlang/v/releases/download/$tag/v_linux.zip
|
|
||||||
unzip v_linux.zip
|
unzip v_linux.zip
|
||||||
cd v
|
cd v
|
||||||
./v -version
|
./v -version
|
||||||
@ -30,8 +29,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Download V
|
- name: Download V
|
||||||
run: |
|
run: |
|
||||||
tag=${GITHUB_REF##*/}
|
wget https://github.com/vlang/v/releases/latest/download/v_macos_arm64.zip
|
||||||
wget https://github.com/vlang/v/releases/download/$tag/v_macos_arm64.zip
|
|
||||||
unzip v_macos_arm64.zip
|
unzip v_macos_arm64.zip
|
||||||
cd v
|
cd v
|
||||||
./v -version
|
./v -version
|
||||||
@ -47,8 +45,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Download V
|
- name: Download V
|
||||||
run: |
|
run: |
|
||||||
tag=${GITHUB_REF##*/}
|
wget https://github.com/vlang/v/releases/latest/download/v_macos_x86_64.zip
|
||||||
wget https://github.com/vlang/v/releases/download/$tag/v_macos_x86_64.zip
|
|
||||||
unzip v_macos_x86_64.zip
|
unzip v_macos_x86_64.zip
|
||||||
cd v
|
cd v
|
||||||
./v -version
|
./v -version
|
||||||
@ -63,13 +60,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Download V
|
- name: Download V
|
||||||
run: |
|
run: |
|
||||||
Set-Variable -Name "tag" -Value $env:GITHUB_REF.split("/", 3)[-1]
|
curl -L https://github.com/vlang/v/releases/latest/download/v_windows.zip -o v_windows.zip
|
||||||
& curl -L https://github.com/vlang/v/releases/download/$tag/v_windows.zip -o v_windows.zip
|
unzip .\v_windows.zip
|
||||||
& unzip .\v_windows.zip
|
cd v
|
||||||
& cd v
|
.\v.exe -version
|
||||||
& .\v.exe -version
|
|
||||||
- name: Test V
|
- name: Test V
|
||||||
run: |
|
run: |
|
||||||
& cd v
|
cd v
|
||||||
& .\v.exe run .\examples\hello_world.v
|
.\v.exe run .\examples\hello_world.v
|
||||||
& .\v.exe -showcc -gc none -cc tcc -no-retry-compilation run .\examples/hello_world.v
|
.\v.exe -showcc -gc none -cc tcc -no-retry-compilation run .\examples/hello_world.v
|
||||||
|
Loading…
x
Reference in New Issue
Block a user