forked from ros-drivers/usb_cam
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.11 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on: pull_request
jobs:
pr_build:
name: "${{ matrix.ci_script }}"
runs-on: self-hosted
container:
image: omavteam/v4l2_camera:latest
strategy:
matrix:
ci_script: [pr_compile, pr_run_tests]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
set-safe-directory: true
# 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 ${{ github.workspace }}/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 ${{ github.workspace }}/test/resources/depth_anything_v2_vits.onnx "https://drive.google.com/uc?export=download&id=${FILE_ID}"
- name: Run ${{ matrix.ci_script }}
run: |
bash -x ./ci/${{ matrix.ci_script }}.sh