Skip to content

Proceeding towards blast.asn #13

Proceeding towards blast.asn

Proceeding towards blast.asn #13

Workflow file for this run

name: Build and Test NCBI crate
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build:
runs-on: macos-latest
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Set up Rust
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
# Cache cargo dependencies
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
# Build the binary
- name: Build
run: cargo build --release
# Run tests
- name: Run tests
run: cargo test --release