File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : arm64 build checks
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : ubuntu-18.04
9
+
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Install dependency packages
13
+ run : |
14
+ sudo sed -i -E 's|^deb ([^ ]+) (.*)$|deb [arch=amd64] \1 \2\ndeb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ \2|' /etc/apt/sources.list
15
+ sudo dpkg --add-architecture arm64
16
+ sudo apt-get update
17
+ sudo apt-get install -y --no-install-recommends \
18
+ crossbuild-essential-arm64 \
19
+ git \
20
+ cmake \
21
+ libpython-dev:arm64 \
22
+ libpython3-dev:arm64 \
23
+ python-numpy \
24
+ python3-numpy
25
+
26
+ - name : Fetch opencv_contrib
27
+ run : |
28
+ git clone --depth 1 https://github.com/opencv/opencv_contrib.git ../opencv_contrib
29
+
30
+ - name : Configure
31
+ run : |
32
+ mkdir build
33
+ cd build
34
+ cmake -DPYTHON2_INCLUDE_PATH=/usr/include/python2.7/ \
35
+ -DPYTHON2_LIBRARIES=/usr/lib/aarch64-linux-gnu/libpython2.7.so \
36
+ -DPYTHON2_NUMPY_INCLUDE_DIRS=/usr/lib/python2.7/dist-packages/numpy/core/include \
37
+ -DPYTHON3_INCLUDE_PATH=/usr/include/python3.6m/ \
38
+ -DPYTHON3_LIBRARIES=/usr/lib/aarch64-linux-gnu/libpython3.6m.so \
39
+ -DPYTHON3_NUMPY_INCLUDE_DIRS=/usr/lib/python3/dist-packages/numpy/core/include \
40
+ -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/aarch64-gnu.toolchain.cmake \
41
+ -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
42
+ ../
43
+
44
+ - name : Build
45
+ run : |
46
+ cd build
47
+ make -j$(nproc --all)
You can’t perform that action at this time.
0 commit comments