Skip to content

Support for ORCA Flash #378

Support for ORCA Flash

Support for ORCA Flash #378

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request_target:
branches:
- main
env:
BUILD_TYPE: Release
jobs:
test-fusion:
name: Test on ORCA Fusion
runs-on:
- self-hosted
- dcam
- CP15440-20UP
permissions:
actions: write
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}
- name: Enable long paths
run: |
git config --global core.longpaths true
shell: pwsh
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Get CMake 3.24
uses: lukka/get-cmake@latest
with:
useCloudCache: false
useLocalCache: true
cmakeVersion: 3.24.3
- name: Install MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_x86
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -L acquire-driver-hdcam --output-on-failure
test-flash:
name: Test on ORCA Flash
runs-on:
- self-hosted
- dcam
- C13440-20C
permissions:
actions: write
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}
- name: Enable long paths
run: |
git config --global core.longpaths true
shell: pwsh
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Get CMake 3.24
uses: lukka/get-cmake@latest
with:
useCloudCache: false
useLocalCache: true
cmakeVersion: 3.24.3
- name: Install MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_x86
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -L acquire-driver-hdcam --output-on-failure
merge:
name: Automerge
runs-on: "ubuntu-latest"
needs:
- test-fusion
- test-flash
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout PR
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.PAT }}
# Don't auto-merge major version updates
- name: Merge PR
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.PAT }}