Skip to content

Commit 1a46c4a

Browse files
authored
Add github CI (HaxeFoundation#126)
1 parent 1e302eb commit 1a46c4a

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/main.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
# This should disable running the workflow on tags
6+
branches:
7+
- "**"
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: krdlab/setup-haxe@v1
16+
with:
17+
haxe-version: 4.3.4
18+
- name: Install haxelib dependencies
19+
run: |
20+
haxelib install hx3compat
21+
haxelib dev hscript .
22+
- name: Test interp
23+
run: |
24+
haxe bin/build-interp.hxml
25+
haxe bin/build-interp.hxml -D hscriptPos
26+
- name: Test neko
27+
run: |
28+
haxe bin/build-neko.hxml && neko bin/Test.n
29+
haxe bin/build-neko.hxml -D hscriptPos && neko bin/Test.n
30+
- name: Test js
31+
run: |
32+
haxe bin/build-js.hxml && node bin/Test.js
33+
haxe bin/build-js.hxml -D hscriptPos && node bin/Test.js
34+
- name: Build hashlink from source
35+
run: |
36+
git clone https://github.com/HaxeFoundation/hashlink.git
37+
cd hashlink
38+
make hl
39+
cd ..
40+
- name: Test hl
41+
run: |
42+
haxe bin/build-hl.hxml && ./hashlink/hl bin/Test.hl
43+
haxe bin/build-hl.hxml -D hscriptPos && ./hashlink/hl bin/Test.hl

bin/build-hl.hxml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/build-each.hxml
2+
-hl bin/Test.hl

0 commit comments

Comments
 (0)