Skip to content

v0.1.16

v0.1.16 #199

Workflow file for this run

name: rust
concurrency:
cancel-in-progress: false
group: ${{ github.workflow }}-${{ github.ref }}
env:
CARGO_TERM_COLOR: always
on:
pull_request:
branches: [ main, master, ]
types: [ opened, synchronize, reopened ]
push:
tags: [ v*, "*-nightly" ]
repository_dispatch:
types: [ rust ]
workflow_dispatch:
permissions: write-all
jobs:
workspace:
strategy:
matrix:
target: [ x86_64-unknown-linux-gnu, ]
toolchain: [ stable, nightly, ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
name: rustup
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
cache-workspaces: true
target: ${{ matrix.target }}
-
name: build
run: cargo build --all-features -r -v --target ${{ matrix.target }} --workspace
-
name: test
run: cargo test -r -v --features full --target ${{ matrix.target }} --workspace
-
name: bench
if: matrix.toolchain == 'nightly'
run: cargo bench -F full -v --workspace
-
name: cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/registry
~/.cargo/git
target
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-
${{ runner.os }}-