-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.22 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
47
48
name: CI
on:
push:
pull_request:
branches:
- main
jobs:
haxelib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: hunter-haxelib
path: |
src/
haxelib.json
README.md
LICENSE
CHANGELOG.md
if-no-files-found: error
build:
strategy:
matrix:
haxe-version: [4.2.5, 4.3.5]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: krdlab/setup-haxe@v1
with:
haxe-version: ${{ matrix.haxe-version }}
- name: Set up Haxelib dependencies
run: |
haxelib install hxargs --quiet
haxelib install haxe-files --quiet
haxelib install hxcpp --quiet
haxelib install hxjava --quiet
haxelib dev hunter ${{ github.workspace }}
- name: Build targets
run: |
haxe build.hxml --neko bin/hunter.n
haxe build.hxml --hl bin/hunter.hl
haxe build.hxml --jvm bin/hunter.jar
haxe build.hxml --php bin/hunter_php
haxe build.hxml --python bin/hunter.py
haxe build.hxml --cpp bin/hunter_cpp