2020-05-11 23:01:49 +02:00
|
|
|
name: Test prebuilt binaries
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [edited, published]
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
2021-01-01 14:14:03 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-19 09:36:30 +01:00
|
|
|
timeout-minutes: 5
|
2020-05-11 23:01:49 +02:00
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2020-07-28 18:17:44 +02: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-11 23:01:49 +02: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 09:36:30 +01:00
|
|
|
timeout-minutes: 5
|
2020-05-11 23:01:49 +02:00
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2020-07-28 18:17:44 +02:00
|
|
|
brew install freetype glfw openssl
|
|
|
|
# brew install sdl2 sdl2_ttf sdl2_mixer sdl2_image
|
2020-05-11 23:01:49 +02: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 09:36:30 +01:00
|
|
|
timeout-minutes: 5
|
2020-05-11 23:01:49 +02: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
|