mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-08-27 03:49:31 +00:00
created debcargo.toml and drafted workflow for deb-source
This commit is contained in:
parent
a8bed4089c
commit
564fb7d7b1
2 changed files with 275 additions and 0 deletions
33
.github/workflows/package.yml
vendored
33
.github/workflows/package.yml
vendored
|
|
@ -108,6 +108,39 @@ jobs:
|
|||
target/*/release/sniffnet.exe
|
||||
if-no-files-found: error
|
||||
|
||||
deb-source:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
default: true
|
||||
|
||||
- name: Install packaging tools
|
||||
run: cargo install debcargo
|
||||
|
||||
- name: Source Debian Package
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir artifacts
|
||||
export DEBFULLNAME="Giuliano Bellini"
|
||||
export DEBEMAIL="gyulyvgc99@gmail.com"
|
||||
debcargo package --config resources/packaging/linux/deb-source/debcargo.toml sniffnet
|
||||
mv rust-sniffnet-1.2.1 artifacts/
|
||||
|
||||
- name: Upload package artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: deb-source
|
||||
path: artifacts/
|
||||
|
||||
deb:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue