From 95301c72296c4a51694eb4cc4d83e5b937bb5beb Mon Sep 17 00:00:00 2001 From: logo4poop Date: Tue, 19 Dec 2023 08:12:33 -0500 Subject: [PATCH] Rework build system --- .github/workflows/ci.yml | 11 +++-------- Interp.hxml | 6 ++---- Native.hxml => Test.hxml | 0 src/Main.hx | 10 ++++++++++ 4 files changed, 15 insertions(+), 12 deletions(-) rename Native.hxml => Test.hxml (100%) create mode 100644 src/Main.hx diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26276e3..495e5f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,6 @@ on: push: branches: - master - - staging - - trying jobs: test: @@ -19,13 +17,10 @@ jobs: - name: Setup Haxe uses: krdlab/setup-haxe@v1.1.5 with: - haxe-version: 4.2.3 + haxe-version: 4.3.3 - - run: haxelib install hxcpp 4.2.1 + - run: haxelib install hxcpp 4.3.3 - run: haxelib install utest 1.13.2 - - - name: Test with the interp interpreter - run: haxe Interp.hxml - name: Test with the hxcpp target - run: haxe Native.hxml + run: haxe Test.hxml diff --git a/Interp.hxml b/Interp.hxml index d0d1f1e..0ba1dab 100644 --- a/Interp.hxml +++ b/Interp.hxml @@ -1,8 +1,6 @@ ---class-path test +--class-path src/ -cp src -cp vendor/json2object/src/ -cp vendor/hxjsonast/src/ --lib utest ---dce full --interp ---main TestAll +--main Main diff --git a/Native.hxml b/Test.hxml similarity index 100% rename from Native.hxml rename to Test.hxml diff --git a/src/Main.hx b/src/Main.hx new file mode 100644 index 0000000..b2e3783 --- /dev/null +++ b/src/Main.hx @@ -0,0 +1,10 @@ +package; + +import keyson.Keyson; +import keyson.KLE; + +class Main { + public function main() { + trace("Hello World"); + } +}