Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python_arch input option #6

Merged
merged 1 commit into from
Apr 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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