2024-06-21 12:43:15 +02:00
|
|
|
name: Build library & run tests
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2024-06-22 12:57:41 +02:00
|
|
|
- name: Run clippy (tcp feature)
|
|
|
|
run: nix develop . -c cargo clippy --no-default-features --features tcp
|
|
|
|
- name: Run clippy (unix feature)
|
|
|
|
run: nix develop . -c cargo clippy --no-default-features --features unix
|
|
|
|
- name: Build & test (tcp feature)
|
|
|
|
run: nix build .#tcp
|
|
|
|
- name: Build & test (unix feature)
|
|
|
|
run: nix build .#unix
|