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 authored and GitHub committed 2023-03-20 08:32:04 -07:00
1 parent 44518e76a5
commit 1ada4e5a5c
2 files changed
+12 -3

No files matched your search

+8 -3
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
+4
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