-
Notifications
You must be signed in to change notification settings - Fork 241
165 lines (160 loc) · 4.92 KB
/
kivy_ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: kivy-ios
on: [push, pull_request]
jobs:
flake8:
name: Flake8 tests
runs-on: macos-latest
steps:
- name: Checkout kivy-ios
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Run flake8
run: |
python -m pip install --upgrade pip
pip install tox>=2.0
tox -e pep8
build_python3_kivy:
runs-on: ${{ matrix.runs_on }}
strategy:
matrix:
include:
- runs_on: macos-latest
python: 3.x
- runs_on: apple-silicon-m1
python: '3.11'
steps:
- name: Checkout kivy-ios
uses: actions/checkout@v3
- name: Set up Python 3.x
# Needs to be skipped on our self-hosted runners tagged as 'apple-silicon-m1'
if: ${{ matrix.runs_on != 'apple-silicon-m1' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install requirements
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
brew install libjpeg
pip3 install wheel
pip3 install -r requirements.txt
brew install autoconf automake libtool pkg-config
brew link libtool
pip3 install Cython==0.29.33
sudo gem install xcpretty
- name: Install kivy-ios
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
python setup.py install
- name: Build Python & Kivy
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
toolchain build python3 kivy
- name: Checkout kivy for tests apps
uses: actions/checkout@v3
with:
repository: kivy/kivy
path: kivy-ci-clone
- name: Create & Build test project
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
.ci/test_project.sh
build_python3_kivy_venv:
runs-on: ${{ matrix.runs_on }}
strategy:
matrix:
include:
- runs_on: macos-latest
python: 3.x
- runs_on: apple-silicon-m1
python: '3.11'
steps:
- name: Checkout kivy-ios
uses: actions/checkout@v3
- name: Set up Python 3.x
# Needs to be skipped on our self-hosted runners tagged as 'apple-silicon-m1'
if: ${{ matrix.runs_on != 'apple-silicon-m1' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install requirements
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
python -m venv venv
. venv/bin/activate
brew install libjpeg
pip install wheel
pip install -r requirements.txt
pip install sh
brew install autoconf automake libtool pkg-config
brew link libtool
pip install Cython==0.29.33
sudo gem install xcpretty
- name: Install kivy-ios
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
python setup.py install
- name: Build Python & Kivy
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
. venv/bin/activate
toolchain build python3 kivy
- name: Checkout kivy for tests apps
uses: actions/checkout@v3
with:
repository: kivy/kivy
path: kivy-ci-clone
- name: Create & Build test project
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
. venv/bin/activate
.ci/test_project.sh
build_updated_recipes:
needs: flake8
runs-on: ${{ matrix.runs_on }}
strategy:
matrix:
include:
- runs_on: macos-latest
python: 3.x
- runs_on: apple-silicon-m1
python: '3.11'
steps:
- name: Checkout kivy-ios
uses: actions/checkout@v3
- name: Set up Python 3.x
# Needs to be skipped on our self-hosted runners tagged as 'apple-silicon-m1'
if: ${{ matrix.runs_on != 'apple-silicon-m1' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install requirements
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
brew install libjpeg
pip3 install wheel
pip3 install -r requirements.txt
brew install autoconf automake libtool pkg-config
brew link libtool
pip3 install Cython==0.29.33
- name: Install kivy-ios
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
python setup.py install
- name: Build updated recipes
run: |
source .ci/utils.sh
arm64_set_path_and_python_version ${{ matrix.python }}
python3 .ci/rebuild_updated_recipes.py