-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (35 loc) · 1.01 KB
/
test.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
41
42
43
44
name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on: pull_request
jobs:
run-tests:
name: Run Tests
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: buildjet-8vcpu-ubuntu-2204-arm
container:
image: ghcr.io/viam-modules/viam-camera-realsense:arm64
options: --platform linux/arm64
- os: ubuntu-latest
container:
image: ghcr.io/viam-modules/viam-camera-realsense:amd64
options: --platform linux/amd64
container: ${{ matrix.container }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create build directory
run: mkdir build
- name: Configure CMake
working-directory: build
run: cmake -G Ninja ..
- name: Build the binary
working-directory: build
run: ninja all -j 4
- name: Run the tests
working-directory: build
run: ctest