Build deb as part of Continuous Integration (#281)

Build the .deb release as part of the Github Actions run. The .deb file is available for download as an artifact of that build for 90 days. Please squash this commit.
This commit is contained in:
Herbert "TheBracket 2023-03-20 10:32:04 -05:00 committed by GitHub
parent 44518e76a5
commit 1ada4e5a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -18,6 +18,13 @@ jobs:
run: pushd src/rust; cargo build --verbose --all; popd
- name: Run tests
run: pushd src/rust; cargo test --verbose --all; popd
- name: Build .deb file
run: pushd src; ./build_dpkg.sh --nostamp; popd
- name: Archive .deb file
uses: actions/upload-artifact@v3
with:
name: libreqos_1.4.-1_amd64.deb
path: src/dist/libreqos_1.4.-1_amd64.deb
audit:
strategy:
@ -28,8 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install tools
run: pushd src/rust; cargo install cargo-outdated; cargo install cargo-audit; popd
- name: Check for outdated dependencies
run: cd src/rust; cargo outdated -w --color=always --root-deps-only --exit-code 1
run: pushd src/rust; cargo install cargo-audit; popd
- name: Audit for CVEs
run: cd src/rust; cargo audit -c always

View File

@ -5,6 +5,10 @@
# This is all GPL2.
BUILD_DATE=`date +%Y%m%d`
if [ $1 = "--nostamp" ]
then
BUILD_DATE=""
fi
PACKAGE=libreqos
VERSION=1.4.$BUILD_DATE
PKGVERSION=$PACKAGE