Skip to content

Commit 8b0a0ae

Browse files
committed
chore: update ci
1 parent 990d321 commit 8b0a0ae

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/main-release.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ jobs:
183183
- name: Install dependencies
184184
run: pnpm install --frozen-lockfile
185185

186+
- name: Install system dependencies for validation
187+
if: runner.os == 'Linux'
188+
run: |
189+
echo "📦 Installing system dependencies for validation..."
190+
sudo apt-get update
191+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libglib2.0-dev
192+
echo "✅ System dependencies installed"
193+
186194
- name: Run comprehensive validation
187195
id: validate
188196
run: |
@@ -228,8 +236,8 @@ jobs:
228236
fi
229237
fi
230238
231-
# 6. Validate build prerequisites
232-
echo "🔨 Validating build prerequisites..."
239+
# 6. Validate build prerequisites (frontend only for validation)
240+
echo "🔨 Validating frontend build prerequisites..."
233241
if ! pnpm run build; then
234242
VALIDATION_ERRORS="${VALIDATION_ERRORS}Frontend build failed. "
235243
VALIDATION_PASSED="false"
@@ -238,9 +246,13 @@ jobs:
238246
# 7. Check Rust/Cargo configuration
239247
echo "🦀 Validating Rust configuration..."
240248
cd src-tauri
249+
250+
# Validate Cargo configuration with system dependencies
241251
if ! cargo check --quiet; then
242252
VALIDATION_ERRORS="${VALIDATION_ERRORS}Cargo check failed. "
243253
VALIDATION_PASSED="false"
254+
else
255+
echo "✅ Cargo configuration is valid"
244256
fi
245257
cd ..
246258
@@ -536,6 +548,20 @@ jobs:
536548
rustup target add ${{ matrix.target }}
537549
fi
538550
551+
# Validate Rust configuration with proper system dependencies
552+
echo "🦀 Validating Rust configuration with system dependencies..."
553+
cd src-tauri
554+
if ! cargo check --quiet; then
555+
echo "❌ Cargo check failed - this indicates a configuration issue"
556+
echo "This could be due to:"
557+
echo " - Missing system dependencies"
558+
echo " - Invalid Cargo.toml configuration"
559+
echo " - Dependency conflicts"
560+
exit 1
561+
fi
562+
cd ..
563+
echo "✅ Rust configuration validated"
564+
539565
echo "✅ Build prerequisites validated"
540566
541567
- name: Extract changelog for release

0 commit comments

Comments
 (0)