Skip to content

Merge pull request #30 from viplix3/codex/review-github-issues-and-pr… #96

Merge pull request #30 from viplix3/codex/review-github-issues-and-pr…

Merge pull request #30 from viplix3/codex/review-github-issues-and-pr… #96

name: CMake on a single platform
on:
push:
pull_request:
jobs:
build-and-run:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Release]
container:
image: nvcr.io/nvidia/tensorrt:23.09-py3
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Pre-configure tzdata
run: |
export DEBIAN_FRONTEND=noninteractive
export TZ=America/Los_Angeles
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime
apt-get update
apt-get install -y tzdata
dpkg-reconfigure --frontend noninteractive tzdata
- name: Cache apt dependencies
uses: actions/cache@v3
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('apt_dependencies.txt') }}
restore-keys: |
${{ runner.os }}-apt-
- name: Install dependencies
if: steps.cache-opencv.outputs.cache-hit != 'true' || steps.cache-eigen.outputs.cache-hit != 'true'
run: |
apt-get update
xargs -a apt_dependencies.txt apt-get install -y --no-install-recommends
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }}
# - name: Run the code
# run: |
# cd ${{github.workspace}}/build
# chmod +x ./bin/botsort_tracking_example
# ./bin/botsort_tracking_example ../config/tracker.ini ../config/gmc.ini ../config/reid.ini ../assets/osnet_x0_25_market1501.onnx ../examples/data/MOT20-01.mp4 ../examples/data/det/det.txt ../outputs