[ci] remove tests from build and release workflows

This commit is contained in:
dijunkun
2026-10-08 15:55:38 +08:00
parent f335f274ab
commit abcdb214f2
7 changed files with 13 additions and 81 deletions
+6 -23
View File
@@ -147,24 +147,18 @@ jobs:
- name: Verify shared license catalog
run: python3 -B apps/ios/scripts/generate_third_party_licenses.py
- name: Verify native build tool selection
run: python3 -B -m unittest discover -s apps/android/test -p 'build_native_test.py' -v
- name: Build APKs and run Lint
- name: Build APKs
working-directory: apps/android
run: |
./gradlew --no-daemon --stacktrace \
:app:assembleDebug :app:assembleRelease :app:assembleDebugAndroidTest \
:app:lintDebug :app:lintRelease
:app:assembleDebug :app:assembleRelease
- name: Verify APKs and native protocol
- name: Verify APKs
working-directory: apps/android
run: |
python3 -B test/verify_apk.py app/build/outputs/apk/debug/app-debug.apk
python3 -B test/verify_apk.py app/build/outputs/apk/release/app-release-unsigned.apk
python3 -B test/run_native.py
"${ANDROID_HOME}/build-tools/36.0.0/apksigner" verify app/build/outputs/apk/debug/app-debug.apk
"${ANDROID_HOME}/build-tools/36.0.0/apksigner" verify app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
- name: Package APKs with the independent Android version
id: package
@@ -202,19 +196,17 @@ jobs:
for variant, source in (
("unsigned", "release/app-release-unsigned.apk"),
("debug", "debug/app-debug.apk"),
("debug", "androidTest/debug/app-debug-androidTest.apk"),
):
destination = output / variant
destination.mkdir(parents=True, exist_ok=True)
suffix = "-test" if "androidTest/" in source else ""
shutil.copyfile(apk_dir / source, destination / f"crossdesk-android-arm64-{variant}-{version}{suffix}.apk")
shutil.copyfile(apk_dir / source, destination / f"crossdesk-android-arm64-{variant}-{version}.apk")
with open(os.environ["GITHUB_OUTPUT"], "a") as stream:
stream.write(f"version={version}\n")
with open(os.environ["GITHUB_STEP_SUMMARY"], "a") as stream:
stream.write(f"Android {version}: arm64, API 26+, 16 KB aligned.\n\n"
"Debug APK uses an ephemeral CI debug key; it is for testing and may require uninstalling an existing build. "
"The Release APK is unsigned and needs your own signing before installation.\n\n"
"Lint, native protocol/frame tests and APK checks passed. Device tests were compiled, not executed.\n")
"Debug and Release APKs built and packaged; APK checks passed.\n")
- name: Upload unsigned Release APK
uses: actions/upload-artifact@v6
@@ -223,19 +215,10 @@ jobs:
path: ${{ runner.temp }}/crossdesk-android/unsigned/*.apk
if-no-files-found: error
- name: Upload Debug and device test APKs
- name: Upload Debug APK
uses: actions/upload-artifact@v6
with:
name: crossdesk-android-arm64-debug-${{ steps.package.outputs.version }}
path: ${{ runner.temp }}/crossdesk-android/debug/*.apk
if-no-files-found: error
retention-days: 14
- name: Upload Lint reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v6
with:
name: crossdesk-android-reports
path: apps/android/app/build/reports/
if-no-files-found: ignore
retention-days: 14
+1 -6
View File
@@ -163,12 +163,7 @@ jobs:
python-version: "3.13"
- name: Verify iOS license catalog
run: |
python3 -B -m unittest discover -s apps/ios/tests -p 'third_party_licenses_test.py' -v
python3 -B apps/ios/scripts/generate_third_party_licenses.py
- name: Verify iOS privacy controls
run: python3 -B -m unittest discover -s apps/ios/tests -p 'privacy_controls_test.py' -v
run: python3 -B apps/ios/scripts/generate_third_party_licenses.py
- name: Install xmake
uses: xmake-io/github-action-setup-xmake@v1
-40
View File
@@ -150,17 +150,6 @@ jobs:
--cc=gcc-10 --cxx=g++-10 --root -y
xmake b -vy --root crossdesk
- name: Verify repository and wire boundaries
env:
XMAKE_GLOBALDIR: /data
run: |
xmake b -vy --root repository_structure_test
xmake b -vy --root crossdesk_wire_test
xmake b -vy --root keyboard_state_wire_test
xmake run --root repository_structure_test
xmake run --root crossdesk_wire_test
xmake run --root keyboard_state_wire_test
- name: Install Linux headless runtime dependencies
run: |
apt-get update
@@ -467,25 +456,6 @@ jobs:
xmake f --CROSSDESK_VERSION=${{ env.VERSION_NUM }} --USE_CUDA=true -y
xmake b -vy crossdesk
- name: Test installed Windows autostart and unattended host
run: |
xmake b -vy windows_autostart_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run windows_autostart_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake b -vy windows_unattended_policy_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake b -vy windows_unattended_security_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run windows_unattended_policy_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run windows_unattended_security_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake b -vy windows_service_lifetime_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run windows_service_lifetime_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Package
shell: pwsh
run: |
@@ -542,13 +512,6 @@ jobs:
xmake f --CROSSDESK_VERSION=${{ env.VERSION_NUM }} --USE_CUDA=true --CROSSDESK_PORTABLE=true -y
xmake b -vy crossdesk
- name: Test portable Windows autostart
run: |
xmake b -vy windows_autostart_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run windows_autostart_test
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Package Portable
shell: pwsh
run: |
@@ -635,9 +598,6 @@ jobs:
with:
path: artifacts
- name: Verify release manifest updates
run: python3 -B -m unittest discover -s .github/scripts -p 'test_*.py' -v
- name: Extract version number
id: version
shell: bash
-3
View File
@@ -101,9 +101,6 @@ jobs:
- name: Checkout publishing scripts
uses: actions/checkout@v5
- name: Verify release manifest updates
run: python3 -B -m unittest discover -s .github/scripts -p 'test_*.py' -v
- name: Verify release version
shell: bash
run: |
@@ -30,9 +30,6 @@ jobs:
with:
ref: ${{ github.event.repository.default_branch }}
- name: Verify release manifest updates
run: python3 -B -m unittest discover -s .github/scripts -p 'test_*.py' -v
- name: Download release information and assets
shell: bash
run: |