Skip to content

Commit e922f6d

Browse files
committed
the last build failed stating that buildozer could not be found. While my mac put buildozer in /usr/local/bin/buildozer, it appears that the github runner put it in /Users/runner/Library/Python/3.7/bin/, which I'll add to the path
Also the dist dir is in buildozer, so I updated the workflow to find it
1 parent af3aaff commit e922f6d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ jobs:
112112
- uses: actions/upload-artifact@v2
113113
with:
114114
name: helloWorld-mac-x86_64
115-
path: dist/
115+
path: buildozer/dist/
116116

117117
- name: Create dist tarball
118-
run: 'tar -cjvf helloWorld-mac-x86_64.${{ github.run_id }}.tar.bz2 dist/*'
118+
run: 'tar -cjvf helloWorld-mac-x86_64.${{ github.run_id }}.tar.bz2 buildozer/dist/*'
119119
shell: bash
120120

121121
- name: Create Release

build/mac/buildDmg.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ which python2
3838
python2 --version
3939
which python3
4040
python3 --version
41+
echo $PATH
4142
pwd
4243
ls -lah
4344

45+
# first update our PATH so installed depends can be executed
46+
PATH=${PATH}:/Users/runner/Library/Python/${PYTHON_EXEC_VERSION}/bin
47+
4448
# everything here is python3, except these bits. python2 is used in
4549
# package_app.py, which is used by buildozer and has a few depends
4650
/usr/bin/python2 -m ensurepip
@@ -155,8 +159,6 @@ mkdir buildozer
155159
pushd buildozer
156160

157161
# create buildozer.spec file
158-
buildozer init
159-
160162
cat > buildozer.spec << EOF
161163
[app]
162164
title = Hello World
@@ -249,6 +251,8 @@ python2 --version
249251
which python3
250252
python3 --version
251253
pwd
254+
echo $PATH
255+
ls -lah /Users/runner/Library/Python/3.7/bin
252256
ls -lah
253257
ls -lah dist
254258

0 commit comments

Comments
 (0)