mirror of
https://github.com/micro-ROS/micro-ROS-Agent.git
synced 2026-09-06 09:55:15 +02:00
Fix/snap version (#162)
* fix(snap): grade and version should be from the part * CI(snap): need git history for latest git tag * ci(snap): use new action-publish crendential system * ignore snap
This commit is contained in:
@@ -17,6 +17,9 @@ jobs:
|
||||
snap-file: ${{ steps.build-snap.outputs.snap }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# full history for latest tag name
|
||||
fetch-depth: 0
|
||||
- uses: snapcore/action-build@v1
|
||||
id: build-snap
|
||||
with:
|
||||
@@ -44,7 +47,8 @@ jobs:
|
||||
name: micro-ros-agent-snap
|
||||
path: .
|
||||
- uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
||||
with:
|
||||
store_login: ${{ secrets.STORE_LOGIN }}
|
||||
snap: ${{needs.build.outputs.snap-file}}
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}
|
||||
|
||||
@@ -33,3 +33,7 @@
|
||||
# End of https://www.gitignore.io/api/qtcreator
|
||||
|
||||
CMakeLists.txt.user
|
||||
|
||||
|
||||
# snaps
|
||||
*.snap
|
||||
|
||||
+2
-3
@@ -1,6 +1,6 @@
|
||||
name: micro-ros-agent
|
||||
adopt-info: uros-agent # parse metadata from the uros-agent part
|
||||
base: core20
|
||||
version: git
|
||||
summary: Bridge between Micro ROS client applications and ROS 2
|
||||
description: |
|
||||
Micro-ROS, whose default implementation is based on eProsima's
|
||||
@@ -99,7 +99,6 @@ description: |
|
||||
After this, you can execute your snap as usual,
|
||||
using `sudo micro-ros-agent serial -d <serial-dev>`.
|
||||
|
||||
grade: stable
|
||||
confinement: strict
|
||||
|
||||
architectures:
|
||||
@@ -123,7 +122,7 @@ parts:
|
||||
snapcraftctl set-version "$version"
|
||||
snapcraftctl set-grade "$grade"
|
||||
|
||||
build-packages: [make, gcc, g++]
|
||||
build-packages: [make, gcc, g++, git]
|
||||
stage-packages: [ros-foxy-ros2launch]
|
||||
|
||||
runner:
|
||||
|
||||
Reference in New Issue
Block a user