diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..815c33f9 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 + diff --git a/ImportAll.hx b/ImportAll.hx index fc2f4742..dc655e2e 100644 --- a/ImportAll.hx +++ b/ImportAll.hx @@ -24,6 +24,10 @@ class ImportAll { Context.getType(typePath); } } + #if haxe5 + Context.onAfterInitMacros(() -> loop([])); + #else loop([]); + #end } } diff --git a/README.md b/README.md index 984468b0..b3201abb 100644 --- a/README.md +++ b/README.md @@ -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.