Update GA. #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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_*.whl |