-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.18 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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