Skip to content

Commit

Permalink
Add supported Linux build. (#66)
Browse files Browse the repository at this point in the history
* Add supported Linux build.

* Updates. Ready for prime time.

* Run tests on runners in Camera group.
  • Loading branch information
aliddell authored Aug 9, 2023
1 parent ba00622 commit 2de9f1e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
45 changes: 36 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
windows-build:
name: "Build on Windows with eGrabber SDK"
runs-on: [ self-hosted, egrabber ]
runs-on: [ self-hosted, windows, egrabber ]

permissions:
actions: write
Expand Down Expand Up @@ -50,16 +50,43 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: Release binaries
name: windows-latest Release binaries
path: ${{github.workspace}}/*.zip

unsupported-build:
name: "Build on Mac and Ubuntu"
strategy:
matrix:
platform: [ "ubuntu-latest", "macos-latest" ]
linux-build:
name: "Build on Ubuntu with eGrabber SDK"
runs-on: [ self-hosted, linux, egrabber ]

runs-on: ${{ matrix.platform }}
permissions:
actions: write

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release

- name: Build
run: |
cmake --build ${{github.workspace}}/build --config Release
cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C Release -G ZIP
- uses: actions/upload-artifact@v3
with:
name: ubuntu-latest Release binaries
path: ${{github.workspace}}/*.zip

mac-build:
name: "Build on Mac"
runs-on: macos-latest

permissions:
actions: write
Expand All @@ -84,5 +111,5 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: ${{matrix.platform}} Release binaries
name: macos-latest Release binaries
path: ${{github.workspace}}/*.zip
6 changes: 5 additions & 1 deletion .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ env:

jobs:
test:
runs-on: [ self-hosted, egrabber ]
runs-on:
group: Camera # Vieworks hardware only present on runners in this group
labels:
- self-hosted
- egrabber
permissions:
actions: write

Expand Down

0 comments on commit 2de9f1e

Please sign in to comment.