Giter VIP home page Giter VIP logo

ros-release-tools's Introduction

ros-release-tools

CI

Dockerfiles for catkin_prepare_release and bloom-generate

Usage

catkin_prepare_release

Manual Release

Run bin/melodic-release.sh or bin/dashing-release.sh in the target ROS package.

bloom-generate

Manual Release

Run the following command in the target ROS package.

ARCH=arm64 ROS_DISTRO=melodic ./run.sh /release_binary.sh
args, params
  • ARCH: amd64, arm64, armhf
  • ROS_DISTRO: melodic, dashing

GitHub Actions

Create bloom-generate.yml in .github/workflows.

name: bloom-generate
on:
  push:
    tags:
      - "*"
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Fetch all tags
        run: git fetch --tags

      - name: Prepare Tiryoh/ros-release-tools
        run: |
          git clone https://github.com/Tiryoh/ros-release-tools.git /tmp/ros-release-tools
      - name: Prepare for Cross-Build
        run: |
          sudo apt-get update
          sudo apt-get install -y qemu-user-static
      - name: Prepare Docker
        run: |
          echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json > /dev/null
          mkdir ~/.docker
          echo '{"experimental": "enabled"}' | tee -a ~/.docker/config.json > /dev/null
          sudo service docker restart
      - name: amd64
        continue-on-error: true
        id: amd64
        run: |
          /tmp/ros-release-tools/run.sh /release_binary.sh
          echo ::set-output name=paths::$(ls release/*amd64.deb)
        env:
          ROS_DISTRO: melodic
          ARCH: amd64

      - name: arm64
        continue-on-error: true
        id: arm64
        run: |
          /tmp/ros-release-tools/run.sh /release_binary.sh
          echo ::set-output name=paths::$(ls release/*arm64.deb)
        env:
          ROS_DISTRO: melodic
          ARCH: arm64

      - name: armhf
        continue-on-error: true
        id: armhf
        run: |
          /tmp/ros-release-tools/run.sh /release_binary.sh
          echo ::set-output name=paths::$(ls release/*armhf.deb)
        env:
          ROS_DISTRO: melodic
          ARCH: armhf

      - name: Extract tag name and log
        if: startsWith(github.ref, 'refs/tags/')
        id: repo
        run: |
          echo "# git commit log" | tee msg.txt
          git log --pretty=format:"* %s" $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))..HEAD | tee -a msg.txt
          echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
      - name: Release
        if: startsWith(github.ref, 'refs/tags/')
        uses: softprops/action-gh-release@v1
        with:
          body_path: msg.txt
          tag_name: ${{ steps.repo.outputs.version }}
          files: |
            ${{ steps.armhf.outputs.paths }}
            ${{ steps.arm64.outputs.paths }}
            ${{ steps.amd64.outputs.paths }}
          draft: false
          prerelease: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ros-release-tools's People

Contributors

tiryoh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ros-release-tools's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.