Skip to content

ci: improve binary release workflow #2

ci: improve binary release workflow

ci: improve binary release workflow #2

Workflow file for this run

name: build
on:
push:
branches: [ dev ]
paths-ignore: [ '*.md' ]
pull_request:
branches: [ dev ]
paths-ignore: [ '*.md' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Resume cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-build
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-03-01
components: clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features