Skip to content

Commit 506460d

Browse files
committed
chore: update ci
1 parent 8b0a0ae commit 506460d

File tree

3 files changed

+4
-75
lines changed

3 files changed

+4
-75
lines changed

.github/workflows/android-release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,7 @@ jobs:
199199
run: pnpm install --frozen-lockfile
200200

201201
- name: Build frontend
202-
run: |
203-
echo "🔨 Building frontend for Android..."
204-
pnpm build
205-
206-
# Validate build output
207-
if [[ ! -d "dist" ]] || [[ ! -f "dist/index.html" ]]; then
208-
echo "❌ Frontend build failed - dist directory or index.html missing"
209-
exit 1
210-
fi
211-
212-
BUILD_SIZE=$(du -sm dist | cut -f1)
213-
echo "✅ Frontend build completed (${BUILD_SIZE}MB)"
202+
run: pnpm build
214203

215204
- name: Validate Android build prerequisites
216205
run: |

.github/workflows/main-release.yml

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -511,58 +511,7 @@ jobs:
511511
run: pnpm install --frozen-lockfile
512512

513513
- name: Build frontend
514-
run: |
515-
echo "🔨 Building frontend for ${{ matrix.build_name }}..."
516-
pnpm build
517-
518-
# Validate build output
519-
if [[ ! -d "dist" ]] || [[ ! -f "dist/index.html" ]]; then
520-
echo "❌ Frontend build failed - dist directory or index.html missing"
521-
exit 1
522-
fi
523-
524-
BUILD_SIZE=$(du -sm dist | cut -f1)
525-
echo "✅ Frontend build completed (${BUILD_SIZE}MB)"
526-
527-
- name: Validate build prerequisites
528-
run: |
529-
echo "🔍 Validating build prerequisites for ${{ matrix.build_name }}..."
530-
531-
# Check Rust toolchain
532-
rustc --version
533-
cargo --version
534-
535-
# Check Node.js and pnpm
536-
node --version
537-
pnpm --version
538-
539-
# Validate Tauri configuration
540-
if [[ ! -f "src-tauri/tauri.conf.json" ]]; then
541-
echo "❌ Tauri configuration missing"
542-
exit 1
543-
fi
544-
545-
# Check if target is supported
546-
if ! rustup target list --installed | grep -q "${{ matrix.target }}"; then
547-
echo "📦 Installing target ${{ matrix.target }}..."
548-
rustup target add ${{ matrix.target }}
549-
fi
550-
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-
565-
echo "✅ Build prerequisites validated"
514+
run: pnpm build
566515

567516
- name: Extract changelog for release
568517
id: changelog

.github/workflows/pr-check.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,8 @@ jobs:
127127
run: pnpm install --frozen-lockfile
128128

129129
- name: Frontend type check and build
130-
if: matrix.test_type == 'frontend'
131-
run: |
132-
echo "🔨 Running frontend build and type check..."
133-
pnpm run build
134-
135-
# Validate build output
136-
if [[ ! -d "dist" ]] || [[ ! -f "dist/index.html" ]]; then
137-
echo "❌ Frontend build failed"
138-
exit 1
139-
fi
140-
echo "✅ Frontend build completed"
130+
run: pnpm run build
131+
141132

142133
- name: Lint check (if available)
143134
if: matrix.test_type == 'frontend'

0 commit comments

Comments
 (0)