@@ -39,27 +39,20 @@ jobs:
39
39
DOCKER_IMAGE : quay.io/skvark/manylinux2014_${PLAT}
40
40
USE_CCACHE : 1
41
41
UNICODE_WIDTH : 32
42
- SDIST : ${{ matrix.build_sdist || 0}}
42
+ SDIST : ${{ matrix.build_sdist || 0 }}
43
43
ENABLE_HEADLESS : ${{ matrix.without_gui }}
44
44
ENABLE_CONTRIB : ${{ matrix.with_contrib }}
45
45
46
46
steps :
47
47
- name : Checkout
48
48
uses : actions/checkout@v2
49
49
with :
50
- submodules : true
50
+ submodules : false
51
51
fetch-depth : 0
52
52
53
53
- name : Update submodules
54
- run : |
55
- git submodule update --remote
56
-
57
- - name : Set up Python ${{ matrix.python-version }}
58
- uses : actions/setup-python@v2
59
- if : ${{ 'macos-latest' == matrix.os }}
60
- with :
61
- python-version : ${{ matrix.python-version }}
62
- architecture : ${{ matrix.platform }}
54
+ if : github.event_name == 'pull_request'
55
+ run : git submodule update --remote
63
56
64
57
- name : Setup Environment variables
65
58
run : |
71
64
echo "BUILD_DEPENDS=$(echo $NP_BUILD_DEP)" >> $GITHUB_ENV;
72
65
echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV;
73
66
74
- - name : before install
67
+ - name : build
75
68
run : |
76
69
set -e
77
70
# Check out and prepare the source
88
81
echo $ENABLE_HEADLESS > headless.enabled
89
82
set -x
90
83
build_wheel $REPO_DIR $PLAT
84
+
85
+ - name : install and test
86
+ run : |
87
+ set -e
88
+ # Check out and prepare the source
89
+ # Multibuild doesn't have releases, so --depth would break eventually (see
90
+ # https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
91
+ git submodule update --init --recursive
92
+ source multibuild/common_utils.sh
93
+ # https://github.com/matthew-brett/multibuild/issues/116
94
+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
95
+ source multibuild/travis_steps.sh
96
+ # This sets -x
97
+ # source travis_multibuild_customize.sh
98
+ echo $ENABLE_CONTRIB > contrib.enabled
99
+ echo $ENABLE_HEADLESS > headless.enabled
100
+ set -x
91
101
install_run $PLAT
92
102
set +x
93
103
@@ -129,9 +139,9 @@ jobs:
129
139
DOCKER_IMAGE : quay.io/skvark/manylinux2014_${PLAT}
130
140
USE_CCACHE : 1
131
141
UNICODE_WIDTH : 32
132
- SDIST : ${{ matrix.build_sdist || 0}}
142
+ SDIST : ${{ matrix.build_sdist || 0 }}
133
143
ENABLE_HEADLESS : ${{ matrix.without_gui || 0 }}
134
- ENABLE_CONTRIB : ${{ matrix.with_contrib || 0}}
144
+ ENABLE_CONTRIB : ${{ matrix.with_contrib || 0 }}
135
145
136
146
steps :
137
147
- name : Checkout
@@ -141,8 +151,8 @@ jobs:
141
151
fetch-depth : 0
142
152
143
153
- name : Update submodules
144
- run : |
145
- git submodule update --remote
154
+ if : github.event_name == 'pull_request'
155
+ run : git submodule update --remote
146
156
147
157
- name : Set up Python ${{ matrix.python-version }}
148
158
uses : actions/setup-python@v2
0 commit comments