-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
cargo deb
to github actions with releasing and artifacts
Signed-off-by: Amjad Alsharafi <[email protected]>
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
||
|
@@ -63,6 +68,32 @@ jobs: | |
files: lcov.info | ||
fail_ci_if_error: true | ||
|
||
- name: Create Debian package | ||
run: cargo deb | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
- name: Upload kernel artifact | ||
if: github.ref == 'refs/heads/master' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: kernel | ||
path: target/debian/*.deb | ||
overwrite: true | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
name: Release ${{ github.ref_name }} | ||
body: | | ||
Release ${{ github.ref_name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
target/debian/*.deb | ||
LICENSE | ||
windows: | ||
runs-on: windows-latest | ||
|
||
|