From 9308ad76685a6aa834f213a8453fcf7cefcee885 Mon Sep 17 00:00:00 2001 From: Stefan <126715034+Stefan2008Git@users.noreply.github.com> Date: Thu, 18 Sep 2025 13:40:24 +0200 Subject: [PATCH 1/4] Request: Add Linux support --- .github/workflows/linux.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..7717ea1 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,47 @@ +name: Linux Build +on: + push: + workflow_dispatch: +jobs: + build: + name: Linux Build + permissions: write-all + runs-on: ubuntu-latest + steps: + - name: Retrieving latest commit. + uses: actions/checkout@v4 + - name: Setting up Haxe + uses: krdlab/setup-haxe@v1 + with: + haxe-version: 5.0.0-preview.1 # haxe version i used cuz yes + - name: Restore existing build cache for faster compilation + uses: actions/cache@v3 + with: + key: cache-build-linux + path: | + .haxelib/ + export/linux/haxe/ + export/linux/obj/ + restore-keys: | + cache-build-linux + - name: Installing / Updating libraries + run: | + haxe -cp cli --run Lib + - name: Building the game + run: | + haxelib run lime build linux + - name: Uploading artifact + uses: actions/upload-artifact@v4 + with: + name: LineTapper + path: export/linux/bin + - name: Uploading new cache + uses: actions/cache@v3 + with: + key: cache-build-linux + path: | + .haxelib/ + export/linux/haxe/ + export/linux/obj/ + restore-keys: | + cache-build-linux From 4a65fc52990a4ef23cf82c151caa739b76c19b48 Mon Sep 17 00:00:00 2001 From: Stefan <126715034+Stefan2008Git@users.noreply.github.com> Date: Thu, 18 Sep 2025 13:47:10 +0200 Subject: [PATCH 2/4] Updating lib.json --- lib.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib.json b/lib.json index 73e23ee..6bfc14c 100644 --- a/lib.json +++ b/lib.json @@ -7,7 +7,12 @@ "quiet": true }, { - "name": "hxcpp" + "name": "hxcpp", + "type": "git", + "dir": null, + "ref": "master", + "url": "https://github.com/HaxeFoundation/hxcpp" + }, { "name": "flixel" From 75c4cb517dcc647ecbd06a87e0547b589345fcd5 Mon Sep 17 00:00:00 2001 From: Stefan <126715034+Stefan2008Git@users.noreply.github.com> Date: Thu, 18 Sep 2025 13:50:26 +0200 Subject: [PATCH 3/4] Trying in different way --- .github/workflows/linux.yml | 4 ++++ lib.json | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7717ea1..45e6139 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -27,6 +27,10 @@ jobs: - name: Installing / Updating libraries run: | haxe -cp cli --run Lib + haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.git + - name: Rebuild Hxcpp + run: | + haxelib run lime rebuild hxcpp - name: Building the game run: | haxelib run lime build linux diff --git a/lib.json b/lib.json index 6bfc14c..73e23ee 100644 --- a/lib.json +++ b/lib.json @@ -7,12 +7,7 @@ "quiet": true }, { - "name": "hxcpp", - "type": "git", - "dir": null, - "ref": "master", - "url": "https://github.com/HaxeFoundation/hxcpp" - + "name": "hxcpp" }, { "name": "flixel" From 4b47430972710fa6a29c3a07b489deb25915f4c5 Mon Sep 17 00:00:00 2001 From: Stefan <126715034+Stefan2008Git@users.noreply.github.com> Date: Thu, 18 Sep 2025 13:51:20 +0200 Subject: [PATCH 4/4] Updating main.yml --- .github/workflows/linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 45e6139..cf447e9 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -27,6 +27,7 @@ jobs: - name: Installing / Updating libraries run: | haxe -cp cli --run Lib + haxelib remove hxcpp haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.git - name: Rebuild Hxcpp run: |