feat: 增加elf文件和正确版本显示 #38
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: 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: | ||
Check failure on line 24 in .github/workflows/build_release.yml GitHub Actions / Build-ReleaseInvalid workflow file
|
||
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/*) | ||
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 |