forked from opencv/opencv-python
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.24 KB
/
build_wheels_linux_incode.yml
File metadata and controls
44 lines (43 loc) · 1.24 KB
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
name: Linux x86_64 incode
on:
push:
tags:
- "*_incode"
jobs:
build:
strategy:
matrix:
include:
- platform: linux/amd64
runs-on: ubuntu-latest
python-version: '3.10'
- platform: linux/arm64
runs-on: ubuntu-24.04-arm
python-version: '3.10'
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: get tag
id: get_tag
run: |
tag=${{ github.ref_name }}
echo "tag: ${tag//[^0-9]/}"
echo "tag=${tag//[^0-9]/}" >> $GITHUB_OUTPUT
- name: Build wheel
run: |
docker build \
--file Dockerfile.incode_build \
--target export-stage \
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \
--build-arg OPENCV_TAG=${{ steps.get_tag.outputs.tag }} \
--tag incodetech/opencv-python-env \
--output type=local,dest=./ \
.
- name: Create release
if: ${{ startsWith(github.ref, 'refs/tags/') == true }}
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
opencv_python_*manylinux*.whl