Skip to content

Commit 791f941

Browse files
authored
Update release.yml
1 parent 754c856 commit 791f941

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,45 @@ on:
77

88
jobs:
99
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
1019
runs-on: ubuntu-latest
1120
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
1322
steps:
1423
- uses: actions/checkout@v2
1524
with:
1625
path: '.'
17-
- name: Set env
18-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26+
- name: Setup environment
27+
run: |
28+
rosdep update
1929
- name: Install deps
2030
run: |
2131
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
2534
- name: Build package
2635
run: |
2736
ls
2837
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 }}
3039
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
3342
ls
3443
- name: Upload binaries to release
3544
uses: svenstaro/upload-release-action@v2
3645
with:
3746
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
4049
tag: ${{ github.ref }}
4150
overwrite: true
4251
body: "Debian release generated using bloom"

0 commit comments

Comments
 (0)