Skip to content

Commit

Permalink
ci: Fix onnx location
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojob committed Nov 13, 2024
1 parent 9bd97e1 commit f10b4c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,22 @@ jobs:
submodules: recursive
set-safe-directory: true

- name: Print working directory
run: pwd

# Step to download the ONNX file from Google Drive link
- name: Download ONNX model file
env:
ONNX_FILE_URL: ${{ secrets.DEPTH_ANYTHING_V2_VITS_LINK }}
run: |
# Create directory if it doesn't exist
mkdir -p tests/resources
mkdir -p /workspaces/v4l2_camera/test/resources
# Extract Google Drive file ID from URL
FILE_ID=$(echo "$ONNX_FILE_URL" | sed -E 's|.*?/d/([^/]+).*|\1|')
# Download the file using Google Drive link and file ID
curl -L -o tests/resources/model.onnx "https://drive.google.com/uc?export=download&id=${FILE_ID}"
curl -L -o /workspaces/v4l2_camera/test/resources/depth_anything_v2_vits.onnx "https://drive.google.com/uc?export=download&id=${FILE_ID}"
- name: Run ${{ matrix.ci_script }}
run: |
Expand Down

0 comments on commit f10b4c6

Please sign in to comment.