1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/.github/workflows/prebuilt.yml

60 lines
1.7 KiB
YAML
Raw Normal View History

name: Test prebuilt binaries
on:
release:
types: [edited, published]
jobs:
ubuntu:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Install dependencies
run: |
sudo apt-get update
2020-07-28 19:17:44 +03:00
sudo apt-get install --quiet -y postgresql libpq-dev libglfw3 libglfw3-dev libfreetype6-dev libssl-dev sqlite3 libsqlite3-dev valgrind
2021-01-08 11:21:26 +03:00
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
- name: Download V
run: |
tag=${GITHUB_REF##*/}
wget https://github.com/vlang/v/releases/download/$tag/v_linux.zip
unzip v_linux.zip
2021-01-08 11:21:26 +03:00
cd v
./v -version
- name: Test V
run: |
./v run examples/hello_world.v
macos:
runs-on: macOS-latest
timeout-minutes: 5
steps:
- name: Install dependencies
run: |
2020-07-28 19:17:44 +03:00
brew install freetype glfw openssl
# brew install sdl2 sdl2_ttf sdl2_mixer sdl2_image
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
- name: Download V
run: |
tag=${GITHUB_REF##*/}
wget https://github.com/vlang/v/releases/download/$tag/v_macos.zip
unzip v_macos.zip
2021-01-08 11:21:26 +03:00
cd v
./v -version
- name: Test V
run: |
./v run examples/hello_world.v
windows:
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Download V
run: |
Set-Variable -Name "tag" -Value $env:GITHUB_REF.split("/", 3)[-1]
& curl -L https://github.com/vlang/v/releases/download/$tag/v_windows.zip -o v_windows.zip
& unzip .\v_windows.zip
2021-01-08 11:21:26 +03:00
& cd v
& .\v.exe -version
- name: Test V
run: |
& .\v.exe run .\examples\hello_world.v