Skip to content

feat: 增加对V1.7.0版本硬件支持 #36

feat: 增加对V1.7.0版本硬件支持

feat: 增加对V1.7.0版本硬件支持 #36

Workflow file for this run

name: Build-Release
on:
push:
tags:
- "*"
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Docker login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Build the Docker image
run: docker build -f Dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/ros2pio:humble .
- name: Docker image push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/ros2pio:humble
build-image:
runs-on: ubuntu-latest
needs: build-docker
container: fishros2/ros2pio:humble
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build firmware
run: /bin/bash release.sh
- name: Compress .pio directory
run: |
cd .pio/libdeps/featheresp32/micro_ros_platformio/
zip -r libmicroros libmicroros
- name: Generate file list for bin directory
id: file_list
run: |
file_list=$(ls -1 bin/*.bin)
echo "FILES=$file_list" >> $GITHUB_ENV
echo "REF_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
name: ${{ env.REF_NAME }}
body_path: release-notes.md
token: ${{ secrets.ACCESS_TOKEN }}
draft: false
prerelease: false
files: |
${{ env.FILES }}
.pio/libdeps/featheresp32/micro_ros_platformio/libmicroros.zip