ci: Added based ci

This commit is contained in:
Black_Raven committed 2026-02-27 17:19:11 +03:00
1 parent cac7ce922e
commit a8af4b4abf
1 file changed
+40
+40
View File
@@ -0,0 +1,40 @@
name: Rust CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-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: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Build documentation
run: cargo doc --no-deps --document-private-items
- name: Upload documentation as artifact
uses: actions/upload-artifact@v4
with:
name: rust-documentation
path: target/doc/
retention-days: 30
if-no-files-found: error