Skip to content

Commit 164bff1

Browse files
committed
ci: setup build and test (#1)
1 parent df4f0a7 commit 164bff1

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,40 @@ permissions:
1414
jobs:
1515
build-and-test:
1616
runs-on: ubuntu-latest
17+
env:
18+
CUDA_MAJOR_VERSION: 12
19+
CUDA_MINOR_VERSION: 9
20+
TENSORRT_VERSION: 10.11.0.33-1+cuda12.9
1721

1822
steps:
1923
- uses: actions/checkout@v4
20-
- uses: bazel-contrib/setup-bazel@0.14.0
24+
- uses: bazel-contrib/setup-bazel@0.15.0
2125
with:
2226
bazelisk-cache: true
2327
disk-cache: ${{ github.workflow }}
2428
repository-cache: true
2529

30+
- name: setup
31+
run: |
32+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
33+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
34+
sudo apt update
35+
sudo apt install -y \
36+
libavutil-dev \
37+
libavdevice-dev \
38+
cuda-cudart-dev-$CUDA_MAJOR_VERSION-$CUDA_MINOR_VERSION \
39+
cuda-crt-$CUDA_MAJOR_VERSION-$CUDA_MINOR_VERSION \
40+
libnvinfer10=$TENSORRT_VERSION \
41+
libnvinfer-headers-dev=$TENSORRT_VERSION \
42+
libnvinfer-dev=$TENSORRT_VERSION \
43+
libnvinfer-plugin10=$TENSORRT_VERSION \
44+
libnvinfer-headers-plugin-dev=$TENSORRT_VERSION \
45+
libnvinfer-plugin-dev=$TENSORRT_VERSION
46+
wget https://github.com/CVCUDA/CV-CUDA/releases/download/v0.15.0-beta/cvcuda-lib-0.15.0-cuda12-x86_64-linux.deb
47+
sudo dpkg -i cvcuda-lib-0.15.0-cuda12-x86_64-linux.deb
48+
wget https://github.com/CVCUDA/CV-CUDA/releases/download/v0.15.0-beta/cvcuda-dev-0.15.0-cuda12-x86_64-linux.deb
49+
sudo dpkg -i cvcuda-dev-0.15.0-cuda12-x86_64-linux.deb
50+
2651
- name: bazel-build-and-test
2752
run: |
28-
bazel build //tracker/... && bazel test //tracker/...
53+
bazel build //... && bazel test //...

0 commit comments

Comments
 (0)