Skip to content

Commit 580aecc

Browse files
author
Aaron Roller
committed
Merge branch 'master' of https://github.com/AutoModality/Onboard-SDK-4.0 into AM-682/camera-stream AM-682/camera-stream
2 parents 4db86d9 + a030fd1 commit 580aecc

6 files changed

Lines changed: 26 additions & 21 deletions

File tree

.github/workflows/package.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-18.04, [arm64,self-hosted,linux, build]]
11+
os: [[x64,self-hosted,linux, build], [arm64,self-hosted,linux, build]]
1212
fail-fast: false
1313
steps:
1414
- uses: AutoModality/action-clean@v1.1.0
1515
- uses: actions/checkout@v2
16-
- uses: rlespinasse/github-slug-action@2.0.0 # for GITHUB_REF_SLUG
16+
- uses: rlespinasse/github-slug-action@3.1.0 # for GITHUB_REF_SLUG
1717
- name: Package
1818
id: package
19-
uses: AutoModality/action-package-debian-ros@v3
19+
uses: AutoModality/action-package-debian-ros@v5-amros
2020
with:
2121
branch: ${{ env.GITHUB_REF_SLUG }}
2222
build-number: ${{ github.run_number }}
@@ -45,12 +45,3 @@ jobs:
4545
with:
4646
pr_draft: true
4747
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
# code-format:
49-
# runs-on: ubuntu-18.04
50-
# needs: package
51-
# steps:
52-
# - uses: actions/checkout@v2
53-
# - name: Format Code
54-
# uses: AutoModality/action-ros-clang-format@master
55-
# env:
56-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-18.04, [arm64,self-hosted,linux, build]]
11+
os: [[x64,self-hosted,linux, build], [arm64,self-hosted,linux, build]]
1212
fail-fast: false
1313
name: Package
1414
steps:
1515
- uses: AutoModality/action-clean@v1.1.0
1616
- uses: actions/checkout@v2
1717
- name: Package
1818
id: package
19-
uses: AutoModality/action-package-debian-ros@v3
19+
uses: AutoModality/action-package-debian-ros@v5-amros
2020
with:
2121
version: 4.0.0-AM${{ github.run_number }}
2222
- name: Deploy

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ cmake-build-debug
5959
.history
6060
am-onboard-sdk-build-deps_*_all.deb
6161
debian/am-onboard-sdk*
62-
debian/.debhelper/
62+
debian/.debhelper/
63+
debian/dji-onboard-sdk*

debian/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
3# Packaging Onboard-SDK-4.0
1+
# Packaging Onboard-SDK-4.0
22

33
* The goal is to make as few custom changes to this repository as possible.
44
* Consider making custom changes to one of our repos that extends this library.
55
* We forked this repository so we could provide debian binary packages for easy and consistent distributions.
66

7+
Updating from DJI's origin is encouraged. Branch from our master, then pull from their tag that you wish to merge.
8+
79
Changes are currently found under two directories introduced by AM:
810

911
* debian/
@@ -25,13 +27,16 @@ Let's keep it that way.
2527

2628
### ARM 64 Builder
2729

28-
We provide self hosted runners to build our ARM binaries, however, this can cause a [security threat](https://help.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories).
30+
We provide self hosted runners to build our AMD and ARM binaries, however, this can cause a [security threat](https://help.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories).
2931
For this reason, we only bring up the self hosted runner manually when builds need to happen, which should be rare.
3032
Organization action runners will not satisfy requirements since Github restricts such from the Org level, but allows at the repo level where we can apply granualar control.
3133

32-
1. `ssh nvidia@192.168.4.135`
33-
1. `/media/nvidia/build/actions-runners/Onboard-SDK-4.0/run.sh`
34+
1. `ssh resource@flops2` (password in Rpass)
35+
1. `/usr/lib/github/actions-runners/flops2-onboard-sdk-4.0/run.sh`
3436
1. You should see `√ Connected to GitHub` and `Listening for Jobs`
35-
1. You should see `arm-builder` available in the [repo's actions](https://github.com/AutoModality/Onboard-SDK-4.0/settings/actions)
37+
1. You should see `flops2` available in the [repo's actions](https://github.com/AutoModality/Onboard-SDK-4.0/settings/actions)
3638
1. Any queues actions should be processed.
3739

40+
Repeat the steps above with `arm-builder-2`.
41+
42+
See [Github Actions Wiki](https://automodality.atlassian.net/wiki/spaces/AMROS/pages/758382915/Continuous+Integration+with+Github+Actions#FLOPS-AMD-Builders) for more information about builders.

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dji-onboard-sdk (123) unstable; urgency=medium
1+
dji-onboard-sdk (0.0.0) unstable; urgency=medium

debian/rules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
1414

1515
override_dh_auto_configure:
1616
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DADVANCED_SENSING:BOOL=ON
17+
18+
override_dh_builddeb:
19+
dh_builddeb --destdir=.
20+
21+
override_dh_auto_clean:
22+
dh_auto_clean
23+
rm -f *.*deb
24+
rm -rf obj-*

0 commit comments

Comments
 (0)