Skip to content

Commit 6d249df

Browse files
Build with Haxe 5.0.0-preview.1 (diagnostic, not for main)
1 parent 2cbf03b commit 6d249df

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/diag-preview.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: diag-preview
2+
# Throwaway: builds with Haxe 5.0.0-preview.1 to see what breaks
3+
on:
4+
push:
5+
branches: ['diag/haxe5-**']
6+
jobs:
7+
preview:
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
shell: bash
12+
steps:
13+
- uses: actions/checkout@v7
14+
- uses: ./.github/workflows/setup
15+
with:
16+
haxe: 5.0.0-preview.1
17+
- name: versions
18+
run: haxe -version; haxe -D hxcpp_api_level --display 2>/dev/null || true
19+
- name: runtime tests (test/haxe)
20+
working-directory: test/haxe
21+
run: |
22+
haxe compile.hxml -D HXCPP_M64 > build.log 2>&1 && echo BUILD OK || { echo BUILD FAILED; grep -aE 'error|Error' build.log | head -60; }
23+
[ -x bin/TestMain ] && bin/TestMain | tail -15 || true
24+
- name: a few regression tests
25+
working-directory: test/regression
26+
run: |
27+
for t in AnonFixedReflection CppiaBoolBuiltins GcCensus CppiaJitBoolField; do
28+
if haxe -C $t build.hxml -D HXCPP_M64 > $t.log 2>&1; then echo "$t: built"; else echo "$t: BUILD FAILED"; grep -aE 'error|Error' $t.log | head -15; fi
29+
done
30+
- name: the Options.txt and defines preview.1 passes
31+
working-directory: test/haxe
32+
run: cat bin/Options.txt 2>/dev/null || true

0 commit comments

Comments
 (0)