From ab6e8da83a54c2d8914b6c40f8b687dc3ecd6358 Mon Sep 17 00:00:00 2001 From: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:06:25 +0800 Subject: [PATCH] Add `cargo deb` to github actions Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com> --- .github/workflows/rust.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4ace744..13d2ab4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,6 +28,11 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov + - uses: cargo-bins/cargo-binstall@main + + - name: Install cargo-deb + run: cargo binstall cargo-deb -y + - name: Use sccache-cache uses: mozilla-actions/sccache-action@v0.0.6 @@ -63,6 +68,12 @@ jobs: files: lcov.info fail_ci_if_error: true + - name: Create Debian package + run: cargo deb + env: + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + windows: runs-on: windows-latest