forked from ros-drivers/usb_cam
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.2 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
38
39
40
name: CI
on: pull_request
jobs:
pr_build:
name: "${{ matrix.ci_script }}"
runs-on: self-hosted
container:
image: omavteam/v4l2_camera:latest
options: |
--gpus all
strategy:
matrix:
ci_script: [pr_compile]
# TODO: Why does pr_run_test not work on the runner
# 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: |
# 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: |
export ONNX_VERBOSE=1
export TRT_LOGGER=VERBOSE
bash -x ./ci/${{ matrix.ci_script }}.sh