|
| 1 | +name: CI |
| 2 | +on: [push, pull_request] |
| 3 | +jobs: |
| 4 | + |
| 5 | + build-osx: |
| 6 | + runs-on: macOS-10.14 |
| 7 | + steps: |
| 8 | + - uses: actions/checkout@v1 |
| 9 | + - uses: actions/setup-node@v1 |
| 10 | + with: |
| 11 | + node-version: 12.x |
| 12 | + - name: Install dependencies |
| 13 | + run: | |
| 14 | + brew install freetype glfw openssl |
| 15 | + export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/" |
| 16 | + - name: Build V |
| 17 | + run: make && ./v -o v compiler |
| 18 | + - name: Build V using V |
| 19 | + run: ./v -o v2 compiler && ./v2 -o v3 compiler |
| 20 | + - name: Test v->c |
| 21 | + run: ./v test v |
| 22 | + - name: Test v->js |
| 23 | + run: ./v -o hi.js examples/hello_v_js.v && node hi.js |
| 24 | + - name: Test vid |
| 25 | + run: | |
| 26 | + git clone --depth 1 https://github.com/vlang/vid.git |
| 27 | + cd vid && ../v -o vid . |
| 28 | +
|
| 29 | + build-ubuntu: |
| 30 | + runs-on: ubuntu-18.04 |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v1 |
| 33 | + - uses: actions/setup-node@v1 |
| 34 | + with: |
| 35 | + node-version: 12.x |
| 36 | + - name: Install dependencies |
| 37 | + run: sudo apt-get update; sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libssl-dev |
| 38 | + - name: Build v |
| 39 | + run: make && ./v -o v compiler |
| 40 | + - name: Test v->c |
| 41 | + run: ./v test v |
| 42 | + - name: Test v->js |
| 43 | + run: ./v -o hi.js examples/hello_v_js.v && node hi.js |
| 44 | + |
| 45 | + build-ubuntu-tcc: |
| 46 | + runs-on: ubuntu-18.04 |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v1 |
| 49 | + - name: Install dependencies |
| 50 | + run: sudo apt-get update; sudo apt-get install --quiet -y tcc libglfw3 libglfw3-dev libfreetype6-dev libssl-dev |
| 51 | + - name: Build v |
| 52 | + run: make && ./v -o v compiler |
| 53 | + - name: Test v->c with tcc |
| 54 | + env: |
| 55 | + VFLAGS: -cc tcc |
| 56 | + run: | |
| 57 | + tcc -version |
| 58 | + ./v -o v2 compiler # Make sure vtcc can build itself |
| 59 | + ./v test v |
| 60 | +
|
| 61 | + build-windows-gcc: |
| 62 | + runs-on: windows-2019 |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v1 |
| 65 | + #- uses: actions/setup-node@v1 |
| 66 | + # with: |
| 67 | + # node-version: 12.x |
| 68 | + - name: Build |
| 69 | + run: | |
| 70 | + gcc --version |
| 71 | + git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries.git thirdparty/freetype/ |
| 72 | + .\make.bat -gcc |
| 73 | + - name: Test |
| 74 | + run: | |
| 75 | + .\v.exe test v |
| 76 | + ## v.js dosent work on windows |
| 77 | + #.\v.exe -o hi.js examples/hello_v_js.v |
| 78 | + #node hi.js |
| 79 | + |
| 80 | + build-windows-msvc: |
| 81 | + runs-on: windows-2019 |
| 82 | + steps: |
| 83 | + - uses: actions/checkout@v1 |
| 84 | + #- uses: actions/setup-node@v1 |
| 85 | + # with: |
| 86 | + # node-version: 12.x |
| 87 | + - name: Build |
| 88 | + env: |
| 89 | + VFLAGS: -os msvc |
| 90 | + run: | |
| 91 | + git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries.git thirdparty/freetype/ |
| 92 | + .\make.bat -msvc |
| 93 | + - name: Test |
| 94 | + env: |
| 95 | + VFLAGS: -os msvc |
| 96 | + run: | |
| 97 | + .\v.exe test v |
| 98 | + ## v.js dosent work on windows |
| 99 | + #.\v.exe -o hi.js examples/hello_v_js.v |
| 100 | + #node hi.js |
0 commit comments