@@ -39,27 +39,20 @@ jobs:
3939 DOCKER_IMAGE : quay.io/skvark/manylinux2014_${PLAT}
4040 USE_CCACHE : 1
4141 UNICODE_WIDTH : 32
42- SDIST : ${{ matrix.build_sdist || 0}}
42+ SDIST : ${{ matrix.build_sdist || 0 }}
4343 ENABLE_HEADLESS : ${{ matrix.without_gui }}
4444 ENABLE_CONTRIB : ${{ matrix.with_contrib }}
4545
4646 steps :
4747 - name : Checkout
4848 uses : actions/checkout@v2
4949 with :
50- submodules : true
50+ submodules : false
5151 fetch-depth : 0
5252
5353 - 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
6356
6457 - name : Setup Environment variables
6558 run : |
7164 echo "BUILD_DEPENDS=$(echo $NP_BUILD_DEP)" >> $GITHUB_ENV;
7265 echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV;
7366
74- - name : before install
67+ - name : build
7568 run : |
7669 set -e
7770 # Check out and prepare the source
8881 echo $ENABLE_HEADLESS > headless.enabled
8982 set -x
9083 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
91101 install_run $PLAT
92102 set +x
93103
@@ -129,9 +139,9 @@ jobs:
129139 DOCKER_IMAGE : quay.io/skvark/manylinux2014_${PLAT}
130140 USE_CCACHE : 1
131141 UNICODE_WIDTH : 32
132- SDIST : ${{ matrix.build_sdist || 0}}
142+ SDIST : ${{ matrix.build_sdist || 0 }}
133143 ENABLE_HEADLESS : ${{ matrix.without_gui || 0 }}
134- ENABLE_CONTRIB : ${{ matrix.with_contrib || 0}}
144+ ENABLE_CONTRIB : ${{ matrix.with_contrib || 0 }}
135145
136146 steps :
137147 - name : Checkout
@@ -141,8 +151,8 @@ jobs:
141151 fetch-depth : 0
142152
143153 - name : Update submodules
144- run : |
145- git submodule update --remote
154+ if : github.event_name == 'pull_request'
155+ run : git submodule update --remote
146156
147157 - name : Set up Python ${{ matrix.python-version }}
148158 uses : actions/setup-python@v2
0 commit comments