Fix ANR During Uploads #9462
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# synced from @nextcloud/android-config | |
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors | |
# SPDX-FileCopyrightText: 2023-2024 Andy Scherzinger <[email protected]> | |
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]> | |
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]> | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
name: "CodeQL" | |
on: | |
push: | |
branches: [ "master", "main", "stable-*" ] | |
pull_request: | |
branches: [ "master", "main" ] | |
schedule: | |
- cron: '24 18 * * 3' | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-22.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'java' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set Swap Space | |
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0 | |
with: | |
swap-size-gb: 10 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Assemble | |
run: | | |
mkdir -p "$HOME/.gradle" | |
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties" | |
./gradlew assembleDebug | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7 |