Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f14f697428 | ||
|
|
4f518e78a5 | ||
|
|
5bb659f76c | ||
|
|
0fe81a0d42 |
+57
-1
@@ -1,11 +1,33 @@
|
|||||||
name: "Project Manager"
|
name: "Project Manager"
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
# python
|
||||||
python-version:
|
python-version:
|
||||||
default: "3.14"
|
default: "3.14"
|
||||||
setup-python:
|
setup-python:
|
||||||
default: false
|
type: boolean
|
||||||
|
required: false
|
||||||
venv-version:
|
venv-version:
|
||||||
default: "1"
|
default: "1"
|
||||||
|
# nodejs
|
||||||
|
nodejs-version:
|
||||||
|
default: "24.x"
|
||||||
|
setup-nodejs:
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
node_modules-version:
|
||||||
|
default: "1"
|
||||||
|
# haxetool
|
||||||
|
setup-haxetool:
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
haxetool_sdk-version:
|
||||||
|
default: "1"
|
||||||
|
|
||||||
|
env:
|
||||||
|
NPM_CONFIG_AUDIT: false
|
||||||
|
NPM_CONFIG_FUND: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -22,6 +44,7 @@ runs:
|
|||||||
|
|
||||||
- run: pm setup:config -i -vv
|
- run: pm setup:config -i -vv
|
||||||
|
|
||||||
|
# setup python
|
||||||
- if: inputs.setup-python
|
- if: inputs.setup-python
|
||||||
run: pip install poetry
|
run: pip install poetry
|
||||||
|
|
||||||
@@ -34,3 +57,36 @@ runs:
|
|||||||
|
|
||||||
- if: ${{ inputs.setup-python && steps.cache-venv.outputs.cache-hit != 'true' }}
|
- if: ${{ inputs.setup-python && steps.cache-venv.outputs.cache-hit != 'true' }}
|
||||||
run: pm setup:python -vv
|
run: pm setup:python -vv
|
||||||
|
|
||||||
|
# setup nodejs
|
||||||
|
- if: ${{ inputs.setup-haxetool || inputs.setup-nodejs }}
|
||||||
|
uses: actions/setup-node@v7
|
||||||
|
with:
|
||||||
|
node-version: ${{ inputs.nodejs-version }}
|
||||||
|
cache: "npm"
|
||||||
|
|
||||||
|
- id: cache-node_modules
|
||||||
|
if: ${{ inputs.setup-haxetool || inputs.setup-nodejs }}
|
||||||
|
uses: actions/cache@v6
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node_modules-${{ runner.os }}-nodejs-${{ inputs.nodejs-version }}-${{ hashFiles('**/package-lock.json') }}-v${{ inputs.node_modules-version }}
|
||||||
|
|
||||||
|
- if: ${{ (inputs.setup-haxetool || 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
|
||||||
|
|||||||
Reference in New Issue
Block a user