XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Delete validate-nuitka.sh

1d2c15c2
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +0 -60
Deleted scripts/validate-nuitka.sh +0 -60
@@ -1,60 +0,0 @@
1 #!/bin/bash
2 # Validation test for Nuitka build system
3
4 set -e
5
6 echo "=== G4F Nuitka Build Validation Test ==="
7 echo "Testing the new Nuitka-based build system"
8
9 # Test 1: Check if g4f_cli.py loads correctly
10 echo "Test 1: Verifying g4f_cli.py entry point..."
11 if python g4f_cli.py --help > /dev/null 2>&1; then
12 echo "✓ g4f_cli.py works correctly"
13 else
14 echo "✗ g4f_cli.py failed"
15 exit 1
16 fi
17
18 # Test 2: Check if Nuitka is available
19 echo "Test 2: Verifying Nuitka installation..."
20 if python -m nuitka --version > /dev/null 2>&1; then
21 echo "✓ Nuitka is installed and working"
22 else
23 echo "✗ Nuitka is not available"
24 exit 1
25 fi
26
27 # Test 3: Check if build script exists and is executable
28 echo "Test 3: Verifying build script..."
29 if [[ -x "scripts/build-nuitka.sh" ]]; then
30 echo "✓ Build script is executable"
31 else
32 echo "✗ Build script is missing or not executable"
33 exit 1
34 fi
35
36 # Test 4: Check if workflow includes Nuitka
37 echo "Test 4: Verifying GitHub Actions workflow..."
38 if grep -q "nuitka" .github/workflows/build-packages.yml; then
39 echo "✓ Workflow uses Nuitka"
40 else
41 echo "✗ Workflow doesn't use Nuitka"
42 exit 1
43 fi
44
45 # Test 5: Verify architecture support in workflow
46 echo "Test 5: Verifying architecture matrix in workflow..."
47 if grep -q "matrix:" .github/workflows/build-packages.yml && grep -q "architecture:" .github/workflows/build-packages.yml; then
48 echo "✓ Architecture matrix is present"
49 else
50 echo "✗ Architecture matrix is missing"
51 exit 1
52 fi
53
54 echo "=== All Tests Passed! ==="
55 echo "The Nuitka build system is properly configured."
56 echo ""
57 echo "Next steps:"
58 echo "1. Test the build in CI environment"
59 echo "2. Verify executable quality and performance"
60 echo "3. Consider adding ARM64 Linux builds with dedicated runners"