Skip to content

Commit

Permalink
Add python_arch input option (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Lord authored Apr 9, 2023
1 parent 00c0bfc commit 0c5a7b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c5a7b8

Please sign in to comment.