Toolchain updates for pipelines

This commit is contained in:
Abdulla Abdurakhmanov 2023-10-24 23:23:34 +02:00
parent 7e655c536b
commit 60d9583363
No known key found for this signature in database
GPG key ID: FCDF08B0ECE6E69B
4 changed files with 14 additions and 3 deletions

View file

@ -4,6 +4,9 @@ on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest

View file

@ -6,6 +6,9 @@ on:
- '**/Cargo.lock'
schedule:
- cron: '5 4 * * 6'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
security_audit:
runs-on: ubuntu-latest

View file

@ -2,7 +2,10 @@ name: tests & formatting
on:
push:
pull_request:
types: [opened]
types: [opened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest

View file

@ -3,14 +3,16 @@ on:
push:
pull_request:
types: [opened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- run: cargo fmt -- --check && cargo clippy --all-features -- -Dwarnings && cargo test --all-features