Files
LibreQoS/.github/workflows/rust.yml
Herbert "TheBracket 1ada4e5a5c 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.
2023-03-20 08:32:04 -07:00

41 lines
1.2 KiB
YAML

name: Rust
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends python3-pip clang gcc gcc-multilib llvm libelf-dev git nano graphviz curl screen llvm pkg-config linux-tools-common linux-tools-`uname r` libbpf-dev
if: matrix.os == 'ubuntu-latest'
- name: Build
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:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install tools
run: pushd src/rust; cargo install cargo-audit; popd
- name: Audit for CVEs
run: cd src/rust; cargo audit -c always