V0.0.3 #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rust | |
concurrency: | |
cancel-in-progress: false | |
group: ${{ github.event.repository.name }}-rust | |
env: | |
CARGO_TERM_COLOR: always | |
CRATE_BASENAME: ${{ github.event.repository.name }} | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
tags: [ v*.*.* ] | |
release: | |
types: [ created ] | |
repository_dispatch: | |
types: [ rust ] | |
schedule: | |
- cron: "30 21 * * 0" # Every Sunday at 9:30pm UTC | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
platform: [ ubuntu-latest ] | |
toolchain: [ stable, nightly ] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup (rustup) | |
run: | | |
rustup default ${{ matrix.toolchain }} | |
rustup update | |
- name: build (workspace) | |
run: cargo build --all-features -r -v --workspace | |
- name: cache | |
uses: actions/cache@v4 | |
with: | |
key: cargo-${{ matrix.toolchain }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target/debug | |
target/release | |
restore-keys: | | |
cargo-${{ matrix.toolchain }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
cargo-${{ matrix.toolchain }}-${{ runner.os }}- | |
cargo-${{ matrix.toolchain }}- | |
cargo- | |
- name: cargo (bench) | |
if: matrix.toolchain == 'nightly' | |
run: cargo bench --features full -v --workspace | |
- name: cargo test (workspace)[full] | |
run: cargo test -v --workspace -F full |