Skip to content

Commit

Permalink
ci: build for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Oct 17, 2023
1 parent b01e10c commit 5309f12
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,41 @@ jobs:
with:
name: mediapipe_android.aar
path: Assets/MediaPipe/SDK/Plugins/Android/mediapipe_android.aar

windows-build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4

# Setup build tools
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git patch unzip zip

# Setup Python
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: '3.10'

- name: Install NumPy
run: pip install --no-cache-dir --user numpy

- name: Install OpenCV
run: |
curl -L --retry 4 --connect-timeout 10 https://github.com/opencv/opencv/releases/download/3.4.10/opencv-3.4.10-vc14_vc15.exe -o opencv-installer.exe
start /wait opencv-installer.exe -gm2 -y -oC:\
del opencv-installer.exe
shell: cmd

- name: Build
run: |
set ANDROID_NDK_HOME=
make cpu
make install
env:
PYTHON_BIN_PATH: ${{ steps.setup-python.outputs.python-path }}
shell: cmd

0 comments on commit 5309f12

Please sign in to comment.