Ci: get ci from 1 job to 5

This commit is contained in:
Black_Raven committed 2026-03-02 14:18:45 +03:00
1 parent 6b076c1d6f
commit 31b406db8e
2 files changed
+114 -4

No files matched your search

+57 -2
View File
@@ -5,7 +5,27 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build-and-test: check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Verify Rust installation
run: |
rustc --version
cargo --version
- name: Build
run: cargo check --verbose
build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -25,9 +45,43 @@ jobs:
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Verify Rust installation
run: |
rustc --version
cargo --version
- name: Test - name: Test
run: cargo test --verbose run: cargo test --verbose
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Verify Rust installation
run: |
rustc --version
cargo --version
- name: Build documentation - name: Build documentation
run: cargo doc --no-deps --document-private-items run: cargo doc --no-deps --document-private-items
@@ -35,9 +89,10 @@ jobs:
run: mkdir -p ./docs-output && cp -r target/doc/* ./docs-output/ run: mkdir -p ./docs-output && cp -r target/doc/* ./docs-output/
- name: Upload documentation as artifact - name: Upload documentation as artifact
uses: actions/upload-artifact@v3 # Понижена версия для совместимости с GHES uses: actions/upload-artifact@v3
with: with:
name: rust-documentation name: rust-documentation
path: ./docs-output/ path: ./docs-output/
retention-days: 30 retention-days: 30
if-no-files-found: error if-no-files-found: error
+57 -2
View File
@@ -5,7 +5,27 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build-and-test: check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Verify Rust installation
run: |
rustc --version
cargo --version
- name: Build
run: cargo check --verbose
build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -25,9 +45,43 @@ jobs:
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Verify Rust installation
run: |
rustc --version
cargo --version
- name: Test - name: Test
run: cargo test --verbose run: cargo test --verbose
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Verify Rust installation
run: |
rustc --version
cargo --version
- name: Build documentation - name: Build documentation
run: cargo doc --no-deps --document-private-items run: cargo doc --no-deps --document-private-items
@@ -35,9 +89,10 @@ jobs:
run: mkdir -p ./docs-output && cp -r target/doc/* ./docs-output/ run: mkdir -p ./docs-output && cp -r target/doc/* ./docs-output/
- name: Upload documentation as artifact - name: Upload documentation as artifact
uses: actions/upload-artifact@v4 # Понижена версия для совместимости с GHES uses: actions/upload-artifact@v4
with: with:
name: rust-documentation name: rust-documentation
path: ./docs-output/ path: ./docs-output/
retention-days: 30 retention-days: 30
if-no-files-found: error if-no-files-found: error