Build #10
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: Build | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| env: | |
| FACE_SDK_TAG: v3.27.0 | |
| jobs: | |
| windows-build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| python-versions: [38, 39, 310, 311, 312, 313] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Clone FaceSDK | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 3DiVi/face-sdk | |
| path: FaceSDK | |
| ref: ${{ env.FACE_SDK_TAG }} | |
| - name: Remove other files from FaceSDK | |
| shell: bash | |
| working-directory: FaceSDK | |
| run: | | |
| mv include ../includeFaceSDK | |
| rm -rf * | |
| mv ../includeFaceSDK ./include | |
| - name: Install Python | |
| run: | | |
| choco install python${{ matrix.python-versions }} -y | |
| Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
| refreshenv | |
| python --version | |
| - name: Install build | |
| run: | | |
| python --version | |
| python -m venv .venv | |
| .\venv/Scripts/activate | |
| python -m pip install build | |
| - name: Build | |
| shell: cmd | |
| run: | | |
| .\venv/Scripts/activate | |
| python -m build | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.python-versions }}-windows | |
| path: dist\*.whl | |
| linux-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Clone FaceSDK | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 3DiVi/face-sdk | |
| path: FaceSDK | |
| ref: ${{ env.FACE_SDK_TAG }} | |
| - name: Remove other files from FaceSDK | |
| shell: bash | |
| working-directory: FaceSDK | |
| run: | | |
| mv include ../includeFaceSDK | |
| rm -rf * | |
| mv ../includeFaceSDK ./include | |
| - name: Install build | |
| run: pip install build | |
| - name: Build | |
| run: python3 -m build | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux | |
| path: dist/*.tar.gz |