mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-02 06:24:16 +02:00
ci: remove desktop build job from reusable-check to cut macOS runner costs (#5475)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
run_lint: true
|
run_lint: true
|
||||||
run_unit_tests: false
|
run_unit_tests: false
|
||||||
run_desktop_builds: false
|
|
||||||
upload_artifacts: true
|
upload_artifacts: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -95,9 +95,9 @@ jobs:
|
|||||||
PY
|
PY
|
||||||
|
|
||||||
# 2. VALIDATION & BUILD: Delegate to reusable-check.yml
|
# 2. VALIDATION & BUILD: Delegate to reusable-check.yml
|
||||||
# We disable coverage and desktop builds for PRs to keep feedback fast
|
# We disable coverage for PRs to keep feedback fast (< 10 mins).
|
||||||
# (< 10 mins). Desktop compilation is already covered by the :desktop:test
|
# Desktop compilation is covered by :desktop:test in the shard-app test shard.
|
||||||
# task in the shard-app test shard.
|
# Native desktop packaging (createDistributable) only runs in release.yml.
|
||||||
validate-and-build:
|
validate-and-build:
|
||||||
needs: check-changes
|
needs: check-changes
|
||||||
if: needs.check-changes.outputs.android == 'true'
|
if: needs.check-changes.outputs.android == 'true'
|
||||||
@@ -106,7 +106,6 @@ jobs:
|
|||||||
run_lint: true
|
run_lint: true
|
||||||
run_unit_tests: true
|
run_unit_tests: true
|
||||||
run_coverage: false
|
run_coverage: false
|
||||||
run_desktop_builds: false
|
|
||||||
upload_artifacts: true
|
upload_artifacts: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,6 @@ on:
|
|||||||
run_coverage:
|
run_coverage:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
run_desktop_builds:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
run_desktop_flatpak_src:
|
run_desktop_flatpak_src:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
@@ -468,45 +465,6 @@ jobs:
|
|||||||
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
|
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
|
||||||
find app/build/outputs/apk -name "*.apk" -exec du -h {} + | awk '{print "| " $2 " | " $1 " |"}' >> $GITHUB_STEP_SUMMARY
|
find app/build/outputs/apk -name "*.apk" -exec du -h {} + | awk '{print "| " $2 " | " $1 " |"}' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
# ── Desktop Build ───────────────────────────────────────────────────
|
|
||||||
build-desktop:
|
|
||||||
name: Build Desktop Debug (${{ matrix.os }})
|
|
||||||
if: inputs.run_desktop_builds == true
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
timeout-minutes: 60
|
|
||||||
needs: lint-check
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [macos-latest, windows-latest, ubuntu-24.04, ubuntu-24.04-arm]
|
|
||||||
env:
|
|
||||||
VERSION_CODE: ${{ needs.lint-check.outputs.version_code }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: Gradle Setup
|
|
||||||
uses: ./.github/actions/gradle-setup
|
|
||||||
with:
|
|
||||||
gradle_encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
|
|
||||||
cache_read_only: ${{ needs.lint-check.outputs.cache_read_only }}
|
|
||||||
|
|
||||||
- name: Build Desktop
|
|
||||||
run: ./gradlew :desktop:createDistributable -Pci=true --scan
|
|
||||||
|
|
||||||
- name: Upload Desktop artifact
|
|
||||||
if: ${{ inputs.upload_artifacts }}
|
|
||||||
uses: actions/upload-artifact@v7
|
|
||||||
with:
|
|
||||||
name: desktop-app-${{ runner.os }}-${{ runner.arch }}
|
|
||||||
path: desktop/build/compose/binaries/main/app/
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
# ── Flatpak Sources ───────────────────────────────────────────────────
|
# ── Flatpak Sources ───────────────────────────────────────────────────
|
||||||
build-flatpak-src:
|
build-flatpak-src:
|
||||||
|
|||||||
Reference in New Issue
Block a user