Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d9c0a8c authored by Corey Bryant's avatar Corey Bryant
Browse files

Merge remote-tracking branch 'origin/main' into beta

parents 1f6b67c8 5ed2351d
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
name: Disk cleanup
description: Clean up disk space by removing unnecessary files
runs:
  using: 'composite'
  steps:
    - name: Clean up unnecessary files
      shell: bash
      run: |
        # Remove Java JDKs
        sudo rm -rf /usr/lib/jvm

        # Remove .NET SDKs
        sudo rm -rf /usr/share/dotnet

        # Remove Swift toolchain
        sudo rm -rf /usr/share/swift

        # Remove Haskell (GHC)
        sudo rm -rf /usr/local/.ghcup

        # Remove Julia
        sudo rm -rf /usr/local/julia*

        # Remove Chromium (optional if not using for browser tests)
        sudo rm -rf /usr/local/share/chromium

        # Remove Microsoft/Edge and Google Chrome builds
        sudo rm -rf /opt/microsoft /opt/google

        # Remove Azure CLI
        sudo rm -rf /opt/az

        # Remove PowerShell
        sudo rm -rf /usr/local/share/powershell

        # Remove toolcaches
        sudo rm -rf /opt/hostedtoolcache
+24 −0
Original line number Diff line number Diff line
name: Disk usage
description: Show disk usage
runs:
  using: 'composite'
  steps:
    - name: Total runner disk usage
      shell: bash
      run: df -h /

    - name: Workspace usage
      shell: bash
      run: du -sh $GITHUB_WORKSPACE || true

    - name: Gradle user home usage
      shell: bash
      run: du -sh ~/.gradle || true

    - name: Gradle cache usage
      shell: bash
      run: du -sh ~/.gradle/caches || true

    - name: Build outputs usage
      shell: bash
      run: du -sh build app-*/build || true
+34 −0
Original line number Diff line number Diff line
name: Set up Gradle build environment
description: Prepares environment for building with JDK and Gradle
inputs:
  add-job-summary:
    description: 'Whether to add a job summary (always, never, on-failure).'
    required: false
    default: 'always'
  write-cache:
    description: 'Whether to write to the cache (true/false).'
    required: false
    default: 'false'
  disable-cache:
    description: 'Whether to disable the cache (true/false).'
    required: false
    default: 'false'
runs:
  using: 'composite'
  steps:
    - name: Copy CI gradle.properties
      shell: bash
      run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

    - name: Set up JDK
      uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
      with:
        distribution: 'temurin'
        java-version: '21'

    - name: Set up Gradle without cache
      uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
      with:
        cache-disabled: ${{ inputs.disable-cache }}
        add-job-summary: ${{ inputs.add-job-summary }}
        cache-read-only: ${{ inputs.write-cache == 'false' }}
+6 −3
Original line number Diff line number Diff line
org.gradle.daemon=false
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
org.gradle.workers.max=4
org.gradle.jvmargs=-Xmx10g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Xmx10g -XX:MaxMetaspaceSize=4g -Dfile.encoding=UTF-8 -XX:+UseParallelGC

kotlin.incremental=false
kotlin.incremental=true
kotlin.compiler.execution.strategy=in-process
+20 −5
Original line number Diff line number Diff line
version: 2
updates:
  # Dependabot does not support GitHub composite actions by default (.github/actions)
  # so we need to add the folder by hand to the directories entry.
  - package-ecosystem: "github-actions"
    directories:
      - "/"
      - "/.github/actions/*"
    schedule:
      interval: "weekly"
    labels:
      - "type: dependency"
      - "type: github actions"
    commit-message:
      prefix: chore
      include: scope
labels:
  - "type: dependency"
updates:
  - package-ecosystem: "github-actions"
  - package-ecosystem: "gradle"
    directory: "/"
    schedule:
      interval: "weekly"
    labels:
      - "type: dependency"
      - "type: gradle"
    commit-message:
      prefix: chore
      include: scope
Loading