Skip to content

Commit fdda40e

Browse files
author
Aaron Roller
committed
ci: release on arm builder 3 only master
1 parent a884195 commit fdda40e

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@ on:
44
branches:
55
- master
66
jobs:
7-
release-package:
8-
runs-on: ${{ matrix.os }}
9-
strategy:
10-
matrix:
11-
os: [ubuntu-18.04, [arm64,self-hosted,linux, build]]
12-
fail-fast: false
13-
name: Package
7+
package-cuda:
8+
runs-on: [arm64,self-hosted,linux, cuda]
149
steps:
1510
- uses: AutoModality/action-clean@v1.1.0
1611
- uses: actions/checkout@v2
12+
- uses: rlespinasse/github-slug-action@3.1.0 # for GITHUB_REF_SLUG
1713
- name: Package
18-
id: package
19-
uses: AutoModality/action-package-debian-ros@v3
20-
with:
21-
version: 4.0.0-AM${{ github.run_number }}
22-
release-repo-entitlement: ${{ secrets.CLOUDSMITH_READ_RELEASE_ENTITLEMENT }}
14+
run: |
15+
AM_PLATFORM=dji_m300 amros packages install -y --password=${{ secrets.BUILD_PASSWORD }}
16+
echo ${{ secrets.BUILD_PASSWORD }} | sudo -S whoami && source /opt/ros/melodic/setup.bash && amros dev build deb --clean --version="4.0.100${{ github.run_number }}"
2317
- name: Deploy
2418
id: deploy
2519
uses: AutoModality/action-cloudsmith@0.2.0
@@ -28,7 +22,7 @@ jobs:
2822
command: 'push'
2923
format: 'deb'
3024
owner: 'automodality'
31-
repo: 'release'
25+
repo: 'dev'
3226
distro: 'ubuntu'
3327
release: 'bionic'
34-
file: '${{ steps.package.outputs.artifact-path }}'
28+
file: 'ros-melodic-dji-osdk-ros_4.0.100${{ github.run_number }}-0bionic_arm64.deb' # version must match package phase

0 commit comments

Comments
 (0)