Skip to content

Commit

Permalink
Added support for specifying version for commercial repo too
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhayen committed Mar 18, 2023
1 parent a5083cd commit 9b441e0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,17 @@ runs:
- name: Install Dependencies
shell: bash
run: |
pip install nuitka==${{inputs.nuitka-version }} -r "${{ github.action_path }}/requirements.txt"
pip install -r "${{ github.action_path }}/requirements.txt"
# With commercial access token, use that repository.
if [ "${{ inputs.access-token }}" != "" ]; then
pip install -e git+https://${{ inputs.access-token }}@github.com/Nuitka/Nuitka-commercial.git@nuitka-main-2022-12-14#egg=nuitka
repo_url="git+https://${{ inputs.access-token }}@github.com/Nuitka/Nuitka-commercial.git"
else
repo_url="git+https://[email protected]/Nuitka/Nuitka.git"
fi
pip install "${repo_url}/@${{inputs.nuitka-version }}#egg=nuitka"
- name: Build Executable (Windows)
if: runner.os == 'Windows'
shell: powershell
Expand Down Expand Up @@ -181,9 +187,6 @@ runs:
run: |
ARGS=""
SPACE=" "
if [ "${{ inputs.access-token }}" != "" ]; then
pip install -e "git+https://${{ inputs.access-token }}@github.com/Nuitka/Nuitka-commercial.git@nuitka-main-2022-12-14#egg=nuitka"
fi
if [ "${{ inputs.module }}" != "${{ false }}" ]; then
ARGS+=" --module"
fi
Expand Down

0 comments on commit 9b441e0

Please sign in to comment.