Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Starting the scaffolding of the redis-based locking mechanism #9

Starting the scaffolding of the redis-based locking mechanism

Starting the scaffolding of the redis-based locking mechanism #9

Workflow file for this run

name: build
on:
push:
branches: [main, "rust-v*"]
pull_request:
branches: [main, "rust-v*"]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
override: true
- name: Format
run: cargo fmt -- --check
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-11
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: build and lint with clippy
run: cargo clippy --tests
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-11
- windows-latest
runs-on: ${{ matrix.os }}
env:
# Disable full debug symbol generation to speed up CI build and keep memory down
# "1" means line tables only, which is useful for panic tracebacks.
RUSTFLAGS: -C debuginfo=1
steps:
- uses: actions/checkout@v3
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: "stable"
override: true
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --verbose