Skip to content

Enhancement/clean up optimisers #679

Enhancement/clean up optimisers

Enhancement/clean up optimisers #679

Workflow file for this run

name: rustfmt and clippy with annotations
on:
push:
branches-ignore:
- "develop"
pull_request:
branches: [ "develop" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
skip_check:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'
cancel_others: 'true'
paths_ignore: '["**/**.yml", "**/data/**"]'
do_not_skip: '["workflow_dispatch"]'
fmt:
needs: skip_check
if: needs.skip_check.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5.3.1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.86.0
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@0.16.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./phylo/Cargo.toml
clippy_check:
needs: skip_check
if: needs.skip_check.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.86.0
with:
components: clippy
- uses: actions-rs/clippy-check@v1.0.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./phylo/Cargo.toml --all-features -- -D warnings