Skip to content

Commit 94e1cff

Browse files
CI: add main CI file
1 parent 6919fd0 commit 94e1cff

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/snap.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: snap
2+
on:
3+
schedule:
4+
- cron: '0 0 1 * *'
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
snap-file: ${{ steps.build-snap.outputs.snap }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: snapcore/action-build@v1
21+
id: build-snap
22+
23+
# Make sure the snap is installable
24+
- run: |
25+
sudo snap install ${{ steps.build-snap.outputs.snap }} --dangerous
26+
# Do some testing with the snap
27+
- run: |
28+
snap info my-ros2-teleop-test
29+
- uses: actions/upload-artifact@v3
30+
with:
31+
name: my-ros2-teleop-test
32+
path: ${{ steps.build-snap.outputs.snap }}

0 commit comments

Comments
 (0)