-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (41 loc) · 1.06 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
49
50
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
set -ex
npm ci lix --ignore-scripts
npx lix download
- name: Build
run: |
npx haxe build.hxml
examples:
runs-on: ubuntu-latest
strategy:
matrix:
target: ['js', 'neko', 'interp', 'hl']
haxe-version: [3.4.7, 4.2.5, latest]
exclude:
- haxe-version: 3.4.7
target: 'interp'
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
with:
haxe-version: ${{ matrix.haxe-version }}
- name: Install Dependencies
run: |
haxelib install utest
- name: Install hx4compat
if: matrix.haxe-version == 'latest'
run: |
haxelib git hx4compat https://github.com/HaxeFoundation/hx4compat.git
- name: Build
run: |
cd tests
haxe RunCi.hxml
neko RunCi.n ${{ matrix.target }}