Aurimas
5ba16edde9
Apply spotless by default ( #2055 )
...
* Apply spotless by default
- Upgrades to spotless 8.2.1
- Moves spotless setup from an init.gradle.kts to build-logic
- Narrows down the scope of `target` in spotless configuration to
be more precise to workaround https://github.com/diffplug/spotless/issues/2717
- Updates all references to init.gradle.kts
Ran gradle-profiler ./gradlew build --dry-run to validate performance
impact.
Before PR:
Mean 10,527.96 ms with 289.01 ms std dev
After PR:
Mean 11,251.78 ms with 530.29 ms std dev
Regression is there, but quite minor.
Test: ./gradlew spotlessCheck
* Address comments from AI overlords
* Fix usage of rootProject
* Enable spotless for build-logic via root project
2026-01-30 09:17:35 -08:00
Aurimas
ade8065442
Merge pull request #1970 from Jaehwa-Noh/bump-setup-java
...
Bump setup-java to v5
2025-12-18 14:44:12 -08:00
Don Turner
003dbb07aa
Update .github/workflows/Build.yaml
...
Co-authored-by: Simon Marquis <contact@simon-marquis.fr >
2025-12-04 11:53:06 +00:00
Don Turner
a223ed6d16
Re-enable graph creation using CI
2025-12-04 11:31:10 +00:00
Don Turner
b51d49c9e5
Disable graphUpdate due to flakiness
2025-12-03 13:49:19 +00:00
Don Turner
cedc689f1a
Disable checkGraphs CI step as it is failing for an unknown reason
2025-12-02 15:46:39 +00:00
Don Turner
da4e0874d5
Attempt to fix failing check graphs build step
2025-12-01 20:16:35 +00:00
Jaehwa Noh
cc7326190a
Bump setup-java to v5
...
Change-Id: Icf141ee6a0d9b66d1041a9a65bba0d8c2f0cac9a
2025-09-28 17:19:18 +09:00
Don Turner
6b14f4fec8
Merge pull request #1961 from SimonMarquis/minifyWithR8
...
Disable R8 minfication step on PRs
2025-09-15 17:33:23 +01:00
Simon Marquis
fcab2605fa
Disable R8 minfication step on PRs
2025-09-14 21:37:46 +02:00
Simon Marquis
c21ce2dcbe
Fix graphUpdate naming in workflow
2025-09-14 15:59:45 +02:00
Simon Marquis
29e3dae062
Fix workflow
2025-09-14 15:52:06 +02:00
Simon Marquis
175164f76f
Detect changes when rendering graphs and auto-commit
2025-09-03 22:51:13 +02:00
Don Turner
ec63a7574e
Merge pull request #1811 from cdsap/main
...
Publishing GHA builds to scans.gradle.com
2025-07-30 12:04:45 +01:00
Simon Marquis
e821058d34
Fix issue with github/codeql-action/upload-sarif@v3
...
where multiple runs of the same tool (e.g. through mutliple files) is now considered an error.
https://github.blog/changelog/2025-07-21-code-scanning-will-stop-combining-multiple-sarif-runs-uploaded-in-the-same-sarif-file/
2025-07-23 08:42:11 +02:00
Don Turner
5c283200db
Merge pull request #1882 from SimonMarquis/patch-5
...
Update GHA JDK to the latest LTS version (21)
2025-07-11 09:40:40 +01:00
Christopher Cartland
ba1a463498
CI: Integrate workflow_triggers for nowinandroid from cartland's fork ( #1873 )
...
* Update workflow triggers
- Build.yaml: Add workflow_dispatch, specify branches for pull_request.
- NightlyBaselineProfiles.yaml: Add workflow_dispatch and push (main) triggers.
- Release.yml: Add workflow_dispatch trigger.
* Allow build for PR on all branches
* Remove the push trigger for NightlyBaselineProfiles.yaml
2025-06-04 10:22:02 +02:00
Simon Marquis
b9b654acf3
Update GHA JDK to the latest LTS version (21)
2025-05-31 11:20:09 +01:00
Inaki Villar
23f602637b
publishing to scans.gradle.com
2025-01-14 13:42:22 -08:00
Ben Weiss
6c931b1e11
Revert "Feature / Added baseline and startup profile generation ( #1752 )"
...
This reverts commit 8f196e18a7 .
2025-01-09 11:26:55 +01:00
Simon Marquis
d47315e612
Disable Release workflow on forks
2024-12-22 09:48:34 +01:00
Simon Marquis
05621615da
Disable NightlyBaselineProfiles workflow on forks
2024-12-22 09:46:28 +01:00
Don Turner
4e17010b97
Merge pull request #1772 from SimonMarquis/gradle-configuration-cache
...
Gradle Configuration Cache on CI
2024-12-20 17:15:29 +00:00
Don Turner
dcfb8ba206
Merge pull request #1768 from SimonMarquis/SimonMarquis-patch-5
...
Add bot emails in `renovate.json`
2024-12-20 14:50:27 +00:00
Don Turner
edf91bdc0e
Merge pull request #1771 from SimonMarquis/patch-2
...
Fix CI workflow OOM
2024-12-20 14:49:44 +00:00
Simon Marquis
88fdb1709f
Remove unnecessary steps
2024-12-20 11:10:34 +01:00
Simon Marquis
46f2390c0e
Remove last bits of GMD requirements from regular build workflow
...
The removal was initiated in:
- https://github.com/android/nowinandroid/pull/1757
2024-12-20 11:08:45 +01:00
Simon Marquis
e5f1b842ee
Gradle Configuration Cache on CI
...
- https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#saving-configuration-cache-data
- https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:secrets
And enable parallel Configuration Cache:
- https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:usage:parallel
This needs a `GRADLE_ENCRYPTION_KEY` secret to be configured in the repository [settings/secrets/actions](https://github.com/android/nowinandroid/settings/secrets/actions ), otherwise no configuration cache will be saved or restored.
As explained in the docs, you can use this tool to generate a configuration-cache compatible key: `openssl rand -base64 16`.
2024-12-20 10:52:22 +01:00
Simon Marquis
4e2060278c
Update NightlyBaselineProfiles.yaml
2024-12-20 10:34:56 +01:00
Simon Marquis
1f285ce070
Fix CI workflow OOM
...
Don't change the start directory with `-p :build-logic` which makes Gradle look for `build-logic/gradle.properties` file that does not exist.
Therefore, the heap size was configured with default values (`-Xmx512m`) which is definitely not enough for our linting.
Fixes #1769
2024-12-20 10:32:33 +01:00
Simon Marquis
7cfe3bd7a2
Re-order entries to limit changes in diff
2024-12-20 10:00:42 +01:00
Simon Marquis
c10d867e1c
Add bot emails in renovate.json
...
Followup on https://github.com/android/nowinandroid/pull/1766
2024-12-20 09:55:42 +01:00
Don Turner
b46d2d6874
Merge pull request #1766 from SimonMarquis/SimonMarquis-patch-3
...
Add GitHub Actions bot to Renovate's `gitIgnoredAuthors`
2024-12-19 17:55:58 +00:00
Don Turner
400e368551
Merge pull request #1763 from SimonMarquis/patch-3
...
Remove default (and deprecated) `gradle-setup` parameters
2024-12-19 11:45:11 +00:00
Simon Marquis
2b2cf6349e
Remove default (and deprecated) gradle-setup parameters
...
- https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md#the-gradle-home-cache-cleanup-input-parameter-has-been-replaced-by-cache-cleanup
- https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-wrapper-validation
2024-12-19 09:56:39 +01:00
Simon Marquis
a6a3517a2e
Add GitHub Actions bot to Renovate's gitIgnoredAuthors
...
To let renovate rebase the reviews when needed, as we sometimes need to update the ringtone dependencies file on top of a dependency bump.
2024-12-19 08:30:04 +01:00
Simon Marquis
194447ac3c
Check presence of sarif files before executing codeql-action/upload-sarif
...
because the action behavior is to throw errors when no sarif files are available...
Closes #1759
2024-12-18 20:31:33 +01:00
Mohsen Rezania
8f196e18a7
Feature / Added baseline and startup profile generation ( #1752 )
...
* Added baseline and startup profile generation and push in NightlyBaselineProfiles.yaml
* Removed extra jobs
2024-12-18 12:42:33 +01:00
Don Turner
dac7ff0b14
Remove benchmarks from Build workflow
2024-12-18 10:56:38 +00:00
Ben Weiss
6f55f79be0
Remove GMD from regular build
...
Change-Id: Id63af908823a6bef576ebc35f65833847bacc5c4
2024-12-17 20:22:29 +01:00
Don Turner
19877b1bab
Merge pull request #1754 from android/dt/switch-to-renovate
...
Renovate: enable automerge
2024-12-17 16:14:01 +00:00
Don Turner
a6fe50a4b9
Re-enable automerge
2024-12-17 15:15:13 +00:00
Don Turner
86fab771f2
Merge pull request #1753 from android/dt/switch-to-renovate
...
Add Renovate, remove Dependabot
2024-12-17 15:13:06 +00:00
Don Turner
8f25d4be8f
Add Renovate, remove Dependabot
2024-12-17 14:45:08 +00:00
Simon Marquis
ceab72b247
Add missing security-events: write permission
...
Required by codeql-action: https://github.com/github/codeql-action/tree/main?tab=readme-ov-file#workflow-permissions
2024-12-12 19:30:16 +00:00
Don Turner
57d98cc2e2
Merge pull request #921 from SimonMarquis/sarif
...
Enable SARIF support on GitHub Actions
2024-12-11 17:07:58 +00:00
Jaehwa Noh
b9105c61f7
Replace github action always into !cancelled. ( #1440 )
...
* Replace method always into cancelled.
Change-Id: I6518ce38a6640d42b9089e264c529ddaf75766b8
* Remove redundant if state.
2024-12-11 15:33:34 +01:00
Don Turner
3a3643e258
Merge pull request #1725 from android/dt/add-api34emu
...
Add API 34 emulator
2024-12-11 11:56:23 +00:00
Jaehwa Noh
e6ec99e793
Add clear instruction at CI screenshot tests error output ( #1423 )
...
* Add clear instruction
- Your fork's CI will take screenshots for your fork.
Change-Id: I7ea1a437be4f9723fcf71d4d18932f8f44f46fa8
* Remove screenshots to see CI instruction.
Change-Id: Ib12f0ee4ff4faff8287f9ddfd5e533868abca4f8
* Revert "Remove screenshots to see CI instruction."
This reverts commit 36de3be9ba .
2024-12-10 16:41:14 +01:00
Simon Marquis
2e1232c136
Merge remote-tracking branch 'upstream/main' into sarif
2024-12-09 18:53:37 +00:00