Update services-and-run.md #1439
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
name: Rust | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: [ self-hosted, ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v2 | |
- 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 |