From 0c5a7b81f8b19fdff6bd54ac8c6b761a86e1d347 Mon Sep 17 00:00:00 2001 From: LY <51789698+Young-Lord@users.noreply.github.com> Date: Mon, 10 Apr 2023 03:50:37 +0800 Subject: [PATCH] Add `python_arch` input option (#6) --- README.md | 1 + action.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 682e06d..ed7a2b9 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ You can also use any major tags like `@v1` for any `@v1.*.*` | `requirements` | - | Path of your `requirements.txt` file | `options` | - | Options to set for pyinstaller command | `python_ver` | 3.10 | Specific python version you want to use + | `python_arch` | x64 | Specific python architecture you want to use | `exe_path` | ./dist | Path on runner-os, where executable will be stored | `upload_exe_with_name`| - | Upload exe_ artifact with this name. Else, it won't upload diff --git a/action.yml b/action.yml index 9b6856f..1eb6dba 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,9 @@ inputs: python_ver: description: specific python version you want to use default: '3.10' + python_arch: + description: specific python architecture you want to use + default: 'x64' exe_path: description: Path on runner-os, where generated executable files are stored default: './dist' @@ -69,6 +72,7 @@ runs: uses: actions/setup-python@v4 with: python-version: ${{ inputs.python_ver }} + architecture: ${{ inputs.python_arch }} - name: (Install) python dev tools shell: bash @@ -95,6 +99,7 @@ runs: echo "✔️ Executable created successfully at _'${{ inputs.exe_path }}'_" >> $GITHUB_STEP_SUMMARY echo " - Python version used: '${{ inputs.python_ver }}'" >> $GITHUB_STEP_SUMMARY + echo " - Python architecture used: '${{ inputs.python_arch }}'" >> $GITHUB_STEP_SUMMARY - name: (Upload) Executable id: artifact_upload