update workflow #37
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 | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-samples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.3.6 | |
| - name: Print Haxe version | |
| run: | | |
| haxe --version | |
| - name: Install dependencies for HashLink and Xvfb | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libmbedtls-dev libuv1-dev libglu1-mesa-dev mesa-common-dev libgl1-mesa-dev xvfb | |
| - name: Install HashLink | |
| run: | | |
| git clone https://github.com/HaxeFoundation/hashlink.git | |
| cd hashlink | |
| git checkout 1.14 # Pinned to stable version 1.14 | |
| make | |
| sudo make install | |
| cd .. | |
| - name: Verify HashLink installation | |
| run: | | |
| hl --version | |
| - name: Install haxelib deps | |
| run: | | |
| haxelib install ludi-commons | |
| haxelib install uuid | |
| haxelib git format https://github.com/HaxeFoundation/format | |
| haxelib git hxbit https://github.com/ncannasse/hxbit | |
| haxelib git hscript https://github.com/HaxeFoundation/hscript | |
| haxelib git domkit https://github.com/HeapsIO/domkit | |
| haxelib git hide https://github.com/HeapsIO/hide | |
| haxelib git hlsdl https://github.com/HaxeFoundation/hashlink 1.14 libs/sdl # Pinned to match HashLink 1.14 | |
| haxelib git heaps https://github.com/HeapsIO/heaps | |
| - name: Build tests | |
| run: | | |
| haxe test/compile.hxml | |
| - name: Run tests | |
| run: | | |
| xvfb-run hl test/build.hl |