-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: build strand-cam-offline-checkerboards app
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.github/workflows/build-strand-cam-offline-checkerboards.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build strand-cam-offline-checkerboards app | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
pull_request: | ||
branches: ["**"] | ||
|
||
jobs: | ||
strand-cam-offline-checkerboards-ubuntu: | ||
strategy: | ||
matrix: | ||
runs-on: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] | ||
runs-on: ${{ matrix.runs-on }} | ||
defaults: | ||
run: | ||
working-directory: strand-cam/strand-cam-offline-checkerboards | ||
steps: | ||
- name: install OpenCV | ||
run: | | ||
sudo apt-get update | ||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y libopencv-dev | ||
- uses: actions/checkout@v4 | ||
- name: Build app | ||
run: | | ||
cargo build --release | ||
- name: Show shared libraries required | ||
run: | | ||
ldd ${{ github.workspace }}/target/release/strand-cam-offline-checkerboards | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: strand-cam-offline-checkerboards-${{ runner.os }}-${{ matrix.runs-on }}-${{ runner.arch }} | ||
path: ${{ github.workspace }}/target/release/strand-cam-offline-checkerboards |