2020-05-12 00:01:49 +03:00
|
|
|
name: Test prebuilt binaries
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [edited, published]
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
2021-01-01 16:14:03 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-19 11:36:30 +03:00
|
|
|
timeout-minutes: 5
|
2020-05-12 00:01:49 +03:00
|
|
|
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
|
|
|
|
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
2020-05-12 00:01:49 +03:00
|
|
|
- name: Download V
|
|
|
|
run: |
|
|
|
|
tag=${GITHUB_REF##*/}
|
|
|
|
wget https://github.com/vlang/v/releases/download/$tag/v_linux.zip
|
|
|
|
unzip v_linux.zip
|
|
|
|
./v -version
|
|
|
|
- name: Test V
|
|
|
|
run: |
|
|
|
|
./v run examples/hello_world.v
|
|
|
|
|
|
|
|
macos:
|
|
|
|
runs-on: macOS-latest
|
2020-11-19 11:36:30 +03:00
|
|
|
timeout-minutes: 5
|
2020-05-12 00:01:49 +03:00
|
|
|
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
|
2020-05-12 00:01:49 +03:00
|
|
|
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
|
|
|
|
./v -version
|
|
|
|
- name: Test V
|
|
|
|
run: |
|
|
|
|
./v run examples/hello_world.v
|
|
|
|
|
|
|
|
windows:
|
|
|
|
runs-on: windows-latest
|
2020-11-19 11:36:30 +03:00
|
|
|
timeout-minutes: 5
|
2020-05-12 00:01:49 +03:00
|
|
|
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
|
|
|
|
& .\v.exe -version
|
|
|
|
- name: Test V
|
|
|
|
run: |
|
|
|
|
& .\v.exe run .\examples\hello_world.v
|