File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 52
52
steps :
53
53
- name : Checkout python-for-android
54
54
uses : actions/checkout@v2
55
+ # helps with GitHub runner getting out of space
56
+ - name : Free disk space
57
+ run : |
58
+ df -h
59
+ sudo swapoff -a
60
+ sudo rm -f /swapfile
61
+ sudo apt -y clean
62
+ docker rmi $(docker image ls -aq)
63
+ df -h
55
64
- name : Pull docker image
56
65
run : |
57
66
make docker/pull
75
84
uses : actions/checkout@v2
76
85
with :
77
86
ref : ' develop'
87
+ # helps with GitHub runner getting out of space
88
+ - name : Free disk space
89
+ run : |
90
+ df -h
91
+ sudo swapoff -a
92
+ sudo rm -f /swapfile
93
+ sudo apt -y clean
94
+ docker rmi $(docker image ls -aq)
95
+ df -h
78
96
- name : Pull docker image
79
97
run : |
80
98
make docker/pull
Original file line number Diff line number Diff line change 3
3
# - python-for-android dependencies
4
4
#
5
5
# Build with:
6
- # docker build --tag=p4a --file Dockerfile.py3 .
6
+ # docker build --tag=p4a --file Dockerfile .
7
7
#
8
8
# Run with:
9
9
# docker run -it --rm p4a /bin/sh -c '. venv/bin/activate && p4a apk --help'
@@ -71,8 +71,6 @@ RUN dpkg --add-architecture i386 \
71
71
openjdk-8-jdk \
72
72
patch \
73
73
pkg-config \
74
- python \
75
- python - pip \
76
74
python3 \
77
75
python3-dev \
78
76
python3-pip \
@@ -95,10 +93,6 @@ RUN useradd --create-home --shell /bin/bash ${USER}
95
93
RUN usermod -append --groups sudo ${USER}
96
94
RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
97
95
98
- # install cython for python 2 (for python 3 it's inside the venv)
99
- RUN pip2 install - - upgrade Cython == 0.28 .6 \
100
- & & rm - rf ~ / .cache /
101
-
102
96
WORKDIR ${WORK_DIR}
103
97
RUN mkdir ${ANDROID_HOME} && chown --recursive ${USER} ${HOME_DIR} ${ANDROID_HOME}
104
98
USER ${USER}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ docker/pull:
58
58
docker pull $(DOCKER_IMAGE ) :latest || true
59
59
60
60
docker/build :
61
- docker build --cache-from=$(DOCKER_IMAGE ) --tag=$(DOCKER_IMAGE ) --file=Dockerfile.py3 .
61
+ docker build --cache-from=$(DOCKER_IMAGE ) --tag=$(DOCKER_IMAGE ) .
62
62
63
63
docker/push :
64
64
docker push $(DOCKER_IMAGE )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ python-for-android
2
2
==================
3
3
4
4
[ ![ Build Status] ( https://travis-ci.org/kivy/python-for-android.svg?branch=develop )] ( https://travis-ci.org/kivy/python-for-android )
5
+ [ ![ Unit tests & build apps] ( https://github.com/kivy/python-for-android/workflows/Unit%20tests%20&%20build%20apps/badge.svg?branch=develop )] ( https://github.com/kivy/python-for-android/actions?query=workflow%3A%22Unit+tests+%26+build+apps%22 )
5
6
[ ![ Coverage Status] ( https://coveralls.io/repos/github/kivy/python-for-android/badge.svg?branch=develop&kill_cache=1 )] ( https://coveralls.io/github/kivy/python-for-android?branch=develop )
6
7
[ ![ Backers on Open Collective] ( https://opencollective.com/kivy/backers/badge.svg )] ( #backers )
7
8
[ ![ Sponsors on Open Collective] ( https://opencollective.com/kivy/sponsors/badge.svg )] ( #sponsors )
You can’t perform that action at this time.
0 commit comments