DO NOT MERGE: CBMA code and test scripts #677
Workflow file for this run
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
name: main | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
tii-deb-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ros2_distro: [ humble ] | |
steps: | |
- name: Checkout mesh_com | |
uses: actions/checkout@v2 | |
with: | |
path: mesh_com | |
- name: Run mesh_com docker build | |
env: | |
ROS: 1 | |
ROS_DISTRO: ${{ matrix.ros2_distro }} | |
PACKAGE_NAME: mesh_com | |
run: | | |
set -eux | |
mkdir bin | |
pushd mesh_com | |
./build.sh ../bin/ | |
popd | |
- uses: jfrog/setup-jfrog-cli@v2 | |
env: | |
JF_ARTIFACTORY_1: ${{ secrets.ARTIFACTORY_CLOUD_TOKEN }} | |
- name: Upload to Artifactory | |
env: | |
ARTIFACTORY_REPO: ssrc-deb-public-local | |
DISTRIBUTION: focal | |
COMPONENT: fog-sw | |
ARCHITECTURE: amd64 | |
BUILD_NAME: mesh-com | |
CI: true | |
if: github.event_name == 'push' | |
run: | | |
set -exu | |
jfrog rt ping | |
pkg=$(find bin -name 'ros-${{ matrix.ros2_distro }}-mesh-com*.deb') | |
pkg_name=$(basename $pkg) | |
jfrog rt u --deb "$DISTRIBUTION/$COMPONENT/$ARCHITECTURE" \ | |
--target-props COMMIT="$GITHUB_SHA" \ | |
--build-name "$BUILD_NAME" \ | |
--build-number "$GITHUB_SHA" \ | |
"$pkg" \ | |
"$ARTIFACTORY_REPO/$pkg_name" | |
jfrog rt build-publish "$BUILD_NAME" "$GITHUB_SHA" | |
jfrog rt bpr "$BUILD_NAME" "$GITHUB_SHA" "$ARTIFACTORY_REPO" \ | |
--status dev \ | |
--comment "development build" |