Skip to content

move to debug

move to debug #20

Workflow file for this run

name: CI Rust -> Check code and make git version
on:
push:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
make-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Make Cache
uses: Swatinem/rust-cache@v2.7.3
with:
save-if: true
cache-all-crates: true
shared-key: tests
- name: Set Toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: Job
run: cargo build -F full --locked
Clippy:
needs:
- make-cache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load Cache
uses: Swatinem/rust-cache@v2.7.3
with:
save-if: false
shared-key: tests
- name: Set Toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: Job
run: cargo clippy --all-targets -F full --locked -- -D warnings
Doc-check:
needs:
- make-cache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load Cache
uses: Swatinem/rust-cache@v2.7.3
with:
save-if: false
shared-key: tests
- name: Set toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: Job
run: cargo test -F full --doc --locked
Lib-check:
needs:
- make-cache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load Cache
uses: Swatinem/rust-cache@v2.7.3
with:
save-if: false
shared-key: tests
- name: Set Toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: Job
run: cargo test -p shuller -F full --lib --locked
Lib-and-Tests-check:
needs:
- make-cache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load Cache
uses: Swatinem/rust-cache@v2.7.3
with:
save-if: false
shared-key: tests
- name: Set Toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: Job
run: cargo test -p shuller tests -F full --locked
Make-Tag:
needs:
- Clippy
- Doc-check
- Lib-check
- Lib-and-Tests-check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Save version
run: |
# Извлекаем версию из Cargo.toml
version=$(grep '^version =' Cargo.toml | head -n 1 | cut -d '"' -f 2)
echo "version=$version" >> $GITHUB_ENV
echo "Extracted version: $version"
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Make tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ env.version }}
run: |
# Создаём и пушим тег
git tag "v$VERSION"
git push origin "v$VERSION"