Skip to content

Commit

Permalink
Remove sudo to avoid using default python version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaGombosER authored Aug 8, 2024
1 parent eb06b5d commit 9c4a743
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ runs:
echo "Error: Invalid version"
exit 1
fi
echo "GIT_TAG=v$VERSION" >> $GITHUB_ENV
- name: Update version in setup.py
shell: bash
run: sed -i "s/version='.*',/version='$VERSION',/" setup.py
Expand Down
4 changes: 2 additions & 2 deletions cross/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ runs:
using: 'composite'
steps:
- name: Set up QEMU for multi-architecture builds
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx for multi-architecture builds
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- if: ${{ inputs.docker-username && inputs.docker-password }}
name: Log in to Docker registry
uses: docker/login-action@v3
Expand Down
8 changes: 4 additions & 4 deletions native/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ runs:
COMMAND="${{ inputs.debian-dist-command }}"
# Default FPM command
COMMAND=${COMMAND:-"fpm -s python -t deb --package dist --force --log warn --python-bin python3 --python-package-name-prefix python3 setup.py"}
COMMAND=${COMMAND:-"fpm -s python -t deb -p dist -f --log info --python-bin python3 --python-package-name-prefix python3 setup.py"}
eval sudo -E $COMMAND
eval $COMMAND
- if: ${{ inputs.debian-dist-type == 'application' }}
name: Create debian distribution (application)
shell: bash
Expand All @@ -72,9 +72,9 @@ runs:
COMMAND="${{ inputs.debian-dist-command }}"
# Default dh-virtualenv command
COMMAND=${COMMAND:-"dpkg-buildpackage -us -ui -uc -tc"}
COMMAND=${COMMAND:-"dpkg-buildpackage -us -ui -uc -tc -b"}
eval sudo -E $COMMAND
eval $COMMAND
# Copy debian package to dist folder if generated out of tree
cp ../*.deb dist || true

0 comments on commit 9c4a743

Please sign in to comment.