tarweb 0.1.1

io-uring based static file web server, with SNI router
name: Build and test

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Rustup upgrade
      run: rustup install nightly
    - name: Install clippy
      run: rustup component add --toolchain nightly clippy
    - name: Cargo install
      run: cargo install cargo-deny oha tickbox
    - name: apt-get update
      run: sudo apt-get update
    - name: Install stuff
      run: sudo apt-get install libseccomp-dev protobuf-compiler libprotobuf-dev
    - name: Build
      run: cargo build --verbose
    - name: Run tests
      run: NODIFF=true CLEANUP=true tickbox --dir tickbox/pre-commit --disable-tui --max-concurrency=1