From 8f65f58b9e6f7e421794ea641b4b738f8d0a08ed Mon Sep 17 00:00:00 2001 From: shmyga Date: Thu, 12 Nov 2026 00:19:12 +0300 Subject: [PATCH] feat(action): add action haxetool setup --- action.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 24d10f4..d2b8765 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,12 @@ inputs: required: false node_modules-version: default: "1" + # haxetool + setup-haxetool: + type: boolean + required: false + haxetool_sdk-version: + default: "1" env: NPM_CONFIG_AUDIT: false @@ -53,7 +59,7 @@ runs: run: pm setup:python -vv # setup nodejs - - if: inputs.setup-nodejs + - if: ${{ inputs.setup-haxetool || inputs.setup-nodejs }} uses: actions/setup-node@v7 with: node-version: ${{ inputs.nodejs-version }} @@ -68,3 +74,19 @@ runs: - if: ${{ inputs.setup-nodejs && steps.cache-node_modules.outputs.cache-hit != 'true' }} run: pm setup:nodejs -vv + + # setup haxetool + - if: inputs.setup-haxetool + uses: actions/cache/restore@v6 + id: cache-haxetool + with: + key: ${{ runner.os }}-haxetool-${{ hashFiles('**/haxetool.json') }}-v{{ inputs.haxetool_sdk-version }} + path: /root/sdk + - if: steps.cache-haxetool.outputs.cache-hit != 'true' + run: | + npx hxt app:flash:setup + - if: steps.cache-haxetool.outputs.cache-hit != 'true' + uses: actions/cache/save@v6 + with: + key: ${{ steps.cache-haxetool.outputs.cache-primary-key }} + path: /root/sdk