1

Do RPM builds in CI

This commit is contained in:
Evan Pratten 2024-02-12 11:10:24 -05:00
parent ce816628f5
commit 1dfc2e8d4e

View File

@ -44,6 +44,12 @@ jobs:
command: install command: install
args: cargo-deb args: cargo-deb
- name: Install cargo-generate-rpm
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-generate-rpm
- name: Compile - name: Compile
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -65,12 +71,25 @@ jobs:
command: deb command: deb
args: --target ${{ matrix.target }} --no-build args: --target ${{ matrix.target }} --no-build
- name: Package RPM
uses: actions-rs/cargo@v1
with:
use-cross: false
command: generate-rpm
args: --target ${{ matrix.target }}
- name: Upload DEB - name: Upload DEB
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: debian-packages name: debian-packages
path: target/${{ matrix.target }}/debian/*.deb path: target/${{ matrix.target }}/debian/*.deb
- name: Upload RPM
uses: actions/upload-artifact@v3
with:
name: rpm-packages
path: target/${{ matrix.target }}/generate-rpm/*.rpm
- name: Determine binary sizes - name: Determine binary sizes
id: get-bin-size-info id: get-bin-size-info
run: | run: |