mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-20 03:18:18 +00:00
47 lines
944 B
YAML
47 lines
944 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
paths:
|
|
- "crates/**/*.rs"
|
|
- ".github/workflows/rust.yml"
|
|
- "**/Cargo.toml"
|
|
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
paths:
|
|
- "crates/**/*.rs"
|
|
- ".github/workflows/rust.yml"
|
|
- "**/Cargo.toml"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build-rust:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: "Update APT"
|
|
shell: bash
|
|
run: "sudo apt update"
|
|
- name: "Install more deps"
|
|
shell: bash
|
|
run: "sudo apt-get install -y redis"
|
|
- uses: actions/checkout@v3
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
cache-on-failure: true
|
|
- name: Install cargo-nextest
|
|
uses: baptiste0928/cargo-install@v2
|
|
with:
|
|
crate: cargo-nextest
|
|
- name: Build (Release)
|
|
run: cargo build --verbose --release
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Run tests
|
|
run: cargo nextest run
|