Use constructor allocation instead. #143
This file contains 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: Testing | |
on: | |
push: | |
branches: main | |
paths-ignore: | |
- '.github/workflows/clang-formatter.yml' | |
- 'project/.clang-format' | |
- 'LICENSE' | |
- 'README.md' | |
- 'haxelib.json' | |
- 'hxformat.json' | |
workflow_dispatch: | |
jobs: | |
Job: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
sample: [albedo_pcb, basic] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Setup Haxe | |
uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: latest | |
- name: Install libudev | |
if: startsWith(matrix.os, 'ubuntu') | |
run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
- name: Install Dependencies | |
run: | | |
haxelib install hxcpp --quiet | |
haxelib dev hxserial_api . | |
- name: Build Unix | |
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') | |
run: cd samples/${{matrix.sample}} && haxe build-unix.hxml | |
- name: Build Windows | |
if: startsWith(matrix.os, 'windows') | |
run: cd samples/${{matrix.sample}} && haxe build-win.hxml | |