ci-refresh
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Successful in 6m37s
CI / test (push) Failing after 13m16s

This commit is contained in:
2025-09-02 09:13:08 +03:00
parent b1270c5cb6
commit 5329752735
3 changed files with 25 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ env:
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
if: github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
@@ -22,4 +22,10 @@ jobs:
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@staging.discours.io:22/quoter'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deployment status
run: |
echo "✅ Deployed to staging.discours.io/quoter"
echo "📦 Commit: ${{ github.sha }}"
echo "🌿 Branch: ${{ github.ref_name }}"

View File

@@ -39,8 +39,16 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
- name: Build with memory optimization
run: |
# Apply memory optimizations for CI environment
export CARGO_NET_GIT_FETCH_WITH_CLI=true
export CARGO_NET_RETRY=3
export CARGO_NET_TIMEOUT=60
export CARGO_HTTP_TIMEOUT=60
export RUSTC_FORCE_INCREMENTAL=0
# Build with our optimized configuration
cargo build --verbose
- name: Install cargo-llvm-cov
run: |
@@ -105,6 +113,11 @@ jobs:
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Clippy with memory optimization
run: |
# Apply same memory optimizations for clippy
export CARGO_NET_GIT_FETCH_WITH_CLI=true
export RUSTC_FORCE_INCREMENTAL=0
# Run clippy with our allow list for collapsible_if
cargo clippy -- -D warnings -A clippy::collapsible-if

View File

@@ -7,7 +7,6 @@
- 🔧 Отключение incremental compilation и default features для major dependencies
- 🔧 Оптимизированные флаги линковщика включая `panic=abort` и `strip=symbols`
- 🔧 Увеличенный swap файл (2GB) с настройкой swappiness в Docker
- 🔧 `Cargo.minimal.toml` fallback для экстремально ограниченных сред
- 🔧 `.dockerignore` для уменьшения контекста сборки
### Technical Details