v / .github / workflows
Raw file | 62 loc (60 sloc) | 1.74 KB | Latest commit hash 362875119
1name: Test prebuilt binaries
2on:
3 release:
4 types: [edited, published]
5jobs:
6 ubuntu:
7 runs-on: ubuntu-20.04
8 timeout-minutes: 5
9 steps:
10 - name: Install dependencies
11 run: |
12 sudo apt-get update
13 sudo apt-get install --quiet -y postgresql libpq-dev libglfw3 libglfw3-dev libfreetype6-dev libssl-dev sqlite3 libsqlite3-dev valgrind
14 ## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
15 - name: Download V
16 run: |
17 tag=${GITHUB_REF##*/}
18 wget https://github.com/vlang/v/releases/download/$tag/v_linux.zip
19 unzip v_linux.zip
20 cd v
21 ./v -version
22 - name: Test V
23 run: |
24 cd v
25 ./v run examples/hello_world.v
26
27 macos:
28 runs-on: macOS-latest
29 timeout-minutes: 5
30 steps:
31 - name: Install dependencies
32 run: |
33 brew install freetype glfw openssl
34 # brew install sdl2 sdl2_ttf sdl2_mixer sdl2_image
35 export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
36 - name: Download V
37 run: |
38 tag=${GITHUB_REF##*/}
39 wget https://github.com/vlang/v/releases/download/$tag/v_macos.zip
40 unzip v_macos.zip
41 cd v
42 ./v -version
43 - name: Test V
44 run: |
45 cd v
46 ./v run examples/hello_world.v
47
48 windows:
49 runs-on: windows-latest
50 timeout-minutes: 5
51 steps:
52 - name: Download V
53 run: |
54 Set-Variable -Name "tag" -Value $env:GITHUB_REF.split("/", 3)[-1]
55 & curl -L https://github.com/vlang/v/releases/download/$tag/v_windows.zip -o v_windows.zip
56 & unzip .\v_windows.zip
57 & cd v
58 & .\v.exe -version
59 - name: Test V
60 run: |
61 & cd v
62 & .\v.exe run .\examples\hello_world.v