-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (100 loc) · 3.21 KB
/
wheels.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
name: Wheels
on:
push:
branches:
- master
env:
GIT_REPO: "MrBitBucket/reportlab-mirror"
REPO_DIR: reportlab
MACOSX_DEPLOYMENT_TARGET: "10.10"
WHEEL_SDIR: wheelhouse
MULTIBUILD_REV: "8882150df6529658700b66bec124dfb77eefca26"
MULTIBUILD_DIR: multibuild
CONFIG_PATH: .travis-config.sh
BUILD_DEPENDS: ""
TEST_DEPENDS: "pillow pyphen"
RLCACHE: "manylinux/reportlab"
jobs:
clear-cache:
name: clear-cache
runs-on: ubuntu-latest
steps:
- name: setup python for clear-cache
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: clear
env:
CITOOLS_USER: "${{secrets.CITOOLS_USER}}"
CITOOLS_PASSWORD: "${{secrets.CITOOLS_PASSWORD}}"
run: |
python -mpip install --no-cache https://hg.reportlab.com/hg-public/rl-ci-tools/archive/tip.tar.gz -U
python -mrl_ci_tools clear-cache "$RLCACHE"
echo "cleared remote cache for $RLCACHE"
build:
needs: [clear-cache]
name: ${{matrix.python}} ${{matrix.os-name}} ${{matrix.platform}} ${{matrix.mb-ml-ver}} ${{matrix.unicode-width}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-16.04","macos-latest"]
python: ["3.6", "3.7", "3.8", "3.9" ]
platform: ["x86_64", "i686"]
unicode-width: [32]
mb-ml-ver: ["1", "2010"]
exclude:
- os: "macos-latest"
platform: "i686"
- os: "macos-latest"
mb-ml-ver: "1"
include:
- os: "macos-latest"
os-name: "osx"
- os: "ubuntu-16.04"
os-name: "xenial"
env:
BUILD_COMMIT: HEAD
PLAT: ${{ matrix.platform }}
MB_PYTHON_VERSION: ${{ matrix.python }}
TRAVIS_OS_NAME: ${{ matrix.os-name }}
UNICODE_WIDTH: ${{ matrix.unicode-width }}
MB_ML_VER: ${{ matrix.mb-ml-ver }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build Wheel
env:
CITOOLS_USER: "${{secrets.CITOOLS_USER}}"
CITOOLS_PASSWORD: "${{secrets.CITOOLS_PASSWORD}}"
run: |
.github/workflows/build.sh
# Uncomment to get SSH access for testing
# - name: Setup tmate session
# if: failure()
# uses: mxschmitt/action-tmate@v3
email:
name: email
needs: [build]
runs-on: ubuntu-latest
steps:
- name: setup python for upload
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: email confirmation
env:
CITOOLS_USER: "${{secrets.CITOOLS_USER}}"
CITOOLS_PASSWORD: "${{secrets.CITOOLS_PASSWORD}}"
run: |
python -mpip install --no-cache https://hg.reportlab.com/hg-public/rl-ci-tools/archive/tip.tar.gz -U
BODY="$(python -mrl_ci_tools cache-info --subdir="$RLCACHE" '*.whl')"
NUPLOADS=$(expr $(echo "$BODY" | wc -l) - 1)
SUBJECT="$NUPLOADS $(basename $RLCACHE) wheels uploaded to $RLCACHE by github"
python -mrl_ci_tools email --subject="$SUBJECT" --body="$BODY"
echo "$SUBJECT"
echo "$BODY"