Skip to content

Commit d512b45

Browse files
committed
Move x86 python builds to github actions. Travis does only aarch64 now
1 parent b8b409f commit d512b45

File tree

2 files changed

+17
-597
lines changed

2 files changed

+17
-597
lines changed

.github/workflows/build_wheels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
matrix:
9494
os: [ubuntu-latest, macos-latest]
9595
python-version: [3.6, 3.7, 3.8, 3.9]
96-
platform: [x64]
96+
platform: [x86, x64]
9797
with_contrib: [0, 1]
9898
without_gui: [0, 1]
9999
build_sdist: [0]
@@ -103,7 +103,6 @@ jobs:
103103
REPO_DIR: .
104104
BUILD_COMMIT: master
105105
PROJECT_SPEC: opencv-python
106-
PLAT: x86_64
107106
MB_PYTHON_VERSION: ${{ matrix.python-version }}
108107
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
109108
MB_ML_VER: 2014
@@ -139,6 +138,8 @@ jobs:
139138
if [ "macos-latest" == "${{ matrix.os }}" ]; then echo "TRAVIS_OS_NAME=osx" >> $GITHUB_ENV; else echo "TRAVIS_OS_NAME=${{ matrix.os }}" >> $GITHUB_ENV; fi
140139
if [ "schedule" == "${{ github.event_name }}" ]; then echo "TRAVIS_EVENT_TYPE=cron" >> $GITHUB_ENV; else echo "TRAVIS_EVENT_TYPE=${{ github.event_name }}" >> $GITHUB_ENV; fi
141140
if [ "schedule" == "${{ github.event_name }}" ]; then echo "BUILD_COMMIT=master" >> $GITHUB_ENV; else echo "BUILD_COMMIT=$BUILD_COMMIT" >> $GITHUB_ENV; fi
141+
if [ "x64" == "${{ matrix.platform }}" ]; then echo "PLAT=x86_64" >> $GITHUB_ENV; fi
142+
if [ "x86" == "${{ matrix.platform }}" ]; then echo "PLAT=i686" >> $GITHUB_ENV; fi
142143
echo "BUILD_DEPENDS=$(echo $NP_BUILD_DEP)" >> $GITHUB_ENV;
143144
echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV;
144145

0 commit comments

Comments
 (0)