File tree 1 file changed +20
-11
lines changed 1 file changed +20
-11
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
release_build :
10
+ strategy :
11
+ matrix :
12
+ include :
13
+ - distro : melodic
14
+ ubuntu : bionic
15
+ bloom : python-bloom
16
+ - distro : noetic
17
+ ubuntu : focal
18
+ bloom : python3-bloom
10
19
runs-on : ubuntu-latest
11
20
container :
12
- image : rostooling/setup-ros-docker:ubuntu-bionic -ros-melodic -ros-base-latest
21
+ image : rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu }} -ros-${{ matrix.distro }} -ros-base-latest
13
22
steps :
14
23
- uses : actions/checkout@v2
15
24
with :
16
25
path : ' .'
17
- - name : Set env
18
- run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26
+ - name : Setup environment
27
+ run : |
28
+ rosdep update
19
29
- name : Install deps
20
30
run : |
21
31
ls
22
- rosdep update
23
- rosdep install --from-path . --ignore-src --rosdistro melodic -y
24
- sudo apt install -y python-bloom fakeroot dpkg-dev debhelper zip
32
+ rosdep install --from-path . --ignore-src --rosdistro ${{ matrix.distro }} -y
33
+ sudo apt install -y ${{ matrix.bloom }} fakeroot dpkg-dev debhelper zip
25
34
- name : Build package
26
35
run : |
27
36
ls
28
37
bloom-release --version
29
- bloom-generate rosdebian --os-name ubuntu --os-version bionic --ros-distro melodic
38
+ bloom-generate rosdebian --os-name ubuntu --os-version ${{ matrix.ubuntu }} --ros-distro ${{ matrix.distro }}
30
39
fakeroot debian/rules binary
31
- mv ../ros-melodic -*.deb .
32
- zip bloom-release-deb.zip ros-melodic -*.deb
40
+ mv ../ros-${{ matrix.distro }} -*.deb .
41
+ zip bloom-${{ matrix.distro }}- release-deb.zip ros-${{ matrix.distro }} -*.deb
33
42
ls
34
43
- name : Upload binaries to release
35
44
uses : svenstaro/upload-release-action@v2
36
45
with :
37
46
repo_token : ${{ secrets.GITHUB_TOKEN }}
38
- file : ./bloom-release-deb.zip
39
- asset_name : bloom-release-deb.zip
47
+ file : ./bloom-${{ matrix.distro }}- release-deb.zip
48
+ asset_name : bloom-${{ matrix.distro }}- release-deb.zip
40
49
tag : ${{ github.ref }}
41
50
overwrite : true
42
51
body : " Debian release generated using bloom"
You can’t perform that action at this time.
0 commit comments