Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
haxe_ver: [4.0.5, 4.3.7, latest]

steps:
- uses: actions/checkout@v7

- uses: krdlab/setup-haxe@v2
with:
haxe-version: ${{ matrix.haxe_ver }}

- run: haxelib dev hxnodejs .
name: Set haxelib dev path

- run: |
haxe build.hxml
haxelib git dox https://github.com/HaxeFoundation/dox
haxe doc.hxml
name: Build

4 changes: 4 additions & 0 deletions ImportAll.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class ImportAll {
Context.getType(typePath);
}
}
#if haxe5
Context.onAfterInitMacros(() -> loop([]));
#else
loop([]);
#end
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Haxelib Downloads](https://badgen.net/haxelib/d/hxnodejs?color=blue)](https://lib.haxe.org/p/hxnodejs)
[![Haxelib License](https://badgen.net/haxelib/license/hxnodejs)](LICENSE.md)

Extern type definitions for Node.JS. Haxe **3.4** or newer is required.
Extern type definitions for Node.JS. Haxe **4.0** or newer is required.

Haxe-generated API documentation is available at http://haxefoundation.github.io/hxnodejs/js/Node.html.

Expand Down