Adding Permissions to Github Action #173
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |