diff --git a/.github/workflows/build-hands.yml b/.github/workflows/build-hands.yml new file mode 100644 index 000000000..3644fe7ee --- /dev/null +++ b/.github/workflows/build-hands.yml @@ -0,0 +1,34 @@ +name: Build Hands + +on: [ workflow_dispatch ] + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Initialize + uses: actions/checkout@v2 + - name: Cache Bazel + uses: actions/cache@v2 + with: + path: ~/.cache/bazel + key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }} + + - name: Build binary + run: | + pip install numpy + bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu + + - name: The job has succeeded + if: ${{ success() }} + uses: actions/upload-artifact@v2 + with: + name: hand_tracking_cpu + path: bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_cpu + + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 + timeout-minutes: 30 +