-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (62 loc) · 2.34 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This is a QCR ROS debian creation pipeline for amd64, arm64 and arm32
# Assumes the latest ubuntu for running the job (with ROS noetic (temp))
name: Release ROS Debian(s)
# Controls when the workflow will run
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
release-build-action:
# The type of runner that the job will run on
# NOTE: the runner does not matter as the container pulls the correct codename and distro
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ros-distro: melodic
arch: amd64
- ros-distro: melodic
arch: arm64
- ros-distro: noetic
arch: amd64
- ros-distro: noetic
arch: arm64
name: Release-Build-Pipeline
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository into a workspace/src folder
- name: Checkout Package
uses: actions/checkout@v2
with:
path: ws/src/${{ github.event.repository.name }}
# Required dependency for arm emulation
- name: Setup QEMU dependency
uses: docker/setup-qemu-action@v1
# Builds your packages within different architectures and distros (in matrix above)
- name: Run Release Workflow
id: build
uses: qcr/ros-debian-release-action@master
with:
architecture: ${{ matrix.arch }}
ros-distro: ${{ matrix.ros-distro }}
# Upload the debian binaries to your repo with the current tag
- name: Upload Binaries to Release
uses: qcr/upload-release-action@master
id: upload
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.build.outputs.debian-files }}
tag: ${{ github.ref }}
# Notifies QCR for download
- name : Notify QCR
uses: qcr/invoke-qcr-hook@master
with:
release: ${{ steps.build.outputs.release }}
ref: ${{ github.ref }}
repo: ${{ github.repository }}
files: ${{ steps.upload.outputs.browser_download_urls }}
packages: ${{ steps.build.outputs.packages }}