add data source demo to showcase #359
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Checks | |
| on: | |
| push: | |
| paths: | |
| - "**.v" | |
| - "**.vsh" | |
| - "**.md" | |
| - "**/ci.yml" | |
| pull_request: | |
| paths: | |
| - "**.v" | |
| - "**.vsh" | |
| - "**.md" | |
| - "**/ci.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| linting: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| env: | |
| VFLAGS: -no-parallel | |
| steps: | |
| - name: Install V | |
| id: install-v | |
| uses: vlang/setup-v@v1.4 | |
| with: | |
| check-latest: true | |
| - name: Install vglyph | |
| run: v install vglyph | |
| - name: Update packages | |
| run: v retry -- sudo apt -qq update | |
| - name: Install X11/GL development dependencies (headers and libs) | |
| run: v retry -- sudo apt install libpango1.0-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev libfreetype-dev libgl1-mesa-dri xvfb libxcursor-dev libxi-dev libxrandr-dev freeglut3-dev | |
| - name: Checkout the gui module | |
| uses: actions/checkout@v4 | |
| with: | |
| path: gui | |
| - name: Verify formatting | |
| run: v fmt -verify -inprocess gui/ | |
| - name: Check formatting of MD files | |
| run: v check-md gui/ | |
| - name: Run tests | |
| run: v test gui/ | |
| - name: Check syntax of examples | |
| run: v gui/examples/_check.vsh | |
| - name: Check compilation of examples | |
| run: v should-compile-all gui/examples/ | |
| compiling-with-prod: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| fail-fast: true | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 25 | |
| env: | |
| VFLAGS: -no-parallel | |
| steps: | |
| - name: Install V | |
| id: install-v | |
| uses: vlang/setup-v@v1.4 | |
| with: | |
| check-latest: true | |
| - name: Install vglyph | |
| run: v install vglyph | |
| - name: Install X11/GL development dependencies (headers and libs) | |
| if: runner.os == 'Linux' | |
| run: v retry -- sudo apt -qq update && v retry -- sudo apt install libpango1.0-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev libfreetype-dev libgl1-mesa-dri xvfb libxcursor-dev libxi-dev libxrandr-dev freeglut3-dev | |
| - name: Install development dependencies on macos (headers and libs) | |
| if: runner.os == 'macOS' | |
| run: v retry -- brew install pango harfbuzz freetype2 | |
| - name: Checkout the gui module | |
| uses: actions/checkout@v4 | |
| with: | |
| path: gui | |
| - name: Run tests | |
| run: v test gui/ | |
| - name: Check compilation of examples | |
| run: v should-compile-all gui/examples/ | |
| - name: Check compilation of examples with -prod | |
| run: v gui/examples/_build.vsh | |
| compiling-with-prod-on-windows: | |
| runs-on: windows-latest | |
| timeout-minutes: 25 | |
| env: | |
| VFLAGS: -no-parallel -cc msvc | |
| steps: | |
| - name: Install V | |
| id: install-v | |
| uses: vlang/setup-v@v1.4 | |
| with: | |
| check-latest: true | |
| - name: Install vglyph | |
| run: v install vglyph | |
| - name: Checkout the gui module | |
| uses: actions/checkout@v4 | |
| with: | |
| path: gui | |
| - name: Run tests | |
| run: v test gui/ | |
| - name: Check compilation of examples | |
| run: v should-compile-all gui/examples/ | |
| - name: Check compilation of examples with -prod | |
| run: v gui/examples/_build.vsh |