Skip to content

Commit 9c4a743

Browse files
Remove sudo to avoid using default python version (#7)
1 parent eb06b5d commit 9c4a743

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ runs:
7979
echo "Error: Invalid version"
8080
exit 1
8181
fi
82-
echo "GIT_TAG=v$VERSION" >> $GITHUB_ENV
8382
- name: Update version in setup.py
8483
shell: bash
8584
run: sed -i "s/version='.*',/version='$VERSION',/" setup.py

cross/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ runs:
2727
using: 'composite'
2828
steps:
2929
- name: Set up QEMU for multi-architecture builds
30-
uses: docker/setup-qemu-action@v2
30+
uses: docker/setup-qemu-action@v3
3131
- name: Setup Docker buildx for multi-architecture builds
32-
uses: docker/setup-buildx-action@v2
32+
uses: docker/setup-buildx-action@v3
3333
- if: ${{ inputs.docker-username && inputs.docker-password }}
3434
name: Log in to Docker registry
3535
uses: docker/login-action@v3

native/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ runs:
5959
COMMAND="${{ inputs.debian-dist-command }}"
6060
6161
# Default FPM command
62-
COMMAND=${COMMAND:-"fpm -s python -t deb --package dist --force --log warn --python-bin python3 --python-package-name-prefix python3 setup.py"}
62+
COMMAND=${COMMAND:-"fpm -s python -t deb -p dist -f --log info --python-bin python3 --python-package-name-prefix python3 setup.py"}
6363
64-
eval sudo -E $COMMAND
64+
eval $COMMAND
6565
- if: ${{ inputs.debian-dist-type == 'application' }}
6666
name: Create debian distribution (application)
6767
shell: bash
@@ -72,9 +72,9 @@ runs:
7272
COMMAND="${{ inputs.debian-dist-command }}"
7373
7474
# Default dh-virtualenv command
75-
COMMAND=${COMMAND:-"dpkg-buildpackage -us -ui -uc -tc"}
75+
COMMAND=${COMMAND:-"dpkg-buildpackage -us -ui -uc -tc -b"}
7676
77-
eval sudo -E $COMMAND
77+
eval $COMMAND
7878
7979
# Copy debian package to dist folder if generated out of tree
8080
cp ../*.deb dist || true

0 commit comments

Comments
 (0)