From 2db582f3ab9a7a441be41d3dd637d0e5ba6933ec Mon Sep 17 00:00:00 2001 From: Fumiaki TOKUHISA Date: Wed, 1 Sep 2021 21:50:19 +0900 Subject: [PATCH] :+1: Add build-hands.yml --- .github/workflows/build-hands.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build-hands.yml 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 +