66
77jobs :
88 build :
9- runs-on : ubuntu-latest
109 strategy :
1110 matrix :
1211 python-version : [ '3.10' ]
13- platform : [ 'linux/amd64', 'linux/arm64' ]
12+ include :
13+ - platform : linux/amd64
14+ runs-on : ubuntu-latest
15+ - platform : linux/arm64
16+ runs-on : ubuntu-24.04-arm
17+ runs-on : ${{ matrix.runs-on }}
1418 steps :
1519 - name : Checkout
1620 uses : actions/checkout@v3
17- - name : Set up Docker Buildx
18- uses : docker/setup-buildx-action@v2
21+ - name : Set up Python
22+ uses : actions/setup-python@v4
23+ with :
24+ python-version : ${{ matrix.python-version }}
1925 - name : get tag
2026 id : get_tag
2127 run : |
2228 tag=${{ github.ref_name }}
2329 echo "tag: ${tag//[^0-9]/}"
2430 echo "tag=${tag//[^0-9]/}" >> $GITHUB_OUTPUT
2531 - name : Build wheel
26- uses : docker/build-push-action@v4
27- with :
28- file : Dockerfile.incode_build
29- platforms : ${{ matrix.platform }}
30- push : false
31- context : .
32- cache-from : type=gha
33- cache-to : type=gha,mode=max
34- target : export-stage
35- build-args : |
36- PYTHON_VERSION=${{ matrix.python-version }}
37- OPENCV_TAG=${{ steps.get_tag.outputs.tag }}
38- tags : |
39- incodetech/opencv-python-env
40- outputs : type=local,dest=./
32+ run : |
33+ docker build \
34+ --file Dockerfile.incode_build \
35+ --target export-stage \
36+ --build-arg PYTHON_VERSION=${{ matrix.python-version }} \
37+ --build-arg OPENCV_TAG=${{ steps.get_tag.outputs.tag }} \
38+ --tag incodetech/opencv-python-env \
39+ --output type=local,dest=./ \
40+ .
4141 - name : Create release
4242 if : ${{ startsWith(github.ref, 'refs/tags/') == true }}
4343 uses : softprops/action-gh-release@v1
4444 with :
4545 fail_on_unmatched_files : true
4646 files : |
47- opencv_python_*.whl
47+ opencv_python_*.whl
0 commit comments