Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/actions/androidapp-road-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,8 @@ runs:

- name: Prepare Android environment
uses: ./.github/actions/prepare-android

- name: Restore Gradle cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-android-androidapp-${{ inputs.flavor }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-android-androidapp-${{ inputs.flavor }}-gradle-
${{ runner.os }}-android-androidapp-gradle-
gradle-workflow-job-context: ${{ inputs.flavor }}

# == Brownfield Gradle Plugin ==
- name: Publish Brownfield Gradle Plugin to Maven Local
Expand Down Expand Up @@ -82,6 +73,18 @@ runs:
run: stat ~/.m2/repository/${{ inputs.rn-project-maven-path }}/0.0.1-SNAPSHOT/brownfieldlib-0.0.1-SNAPSHOT-release.aar
shell: bash

# clean up build artifacts to ensure no ENOSPC
- name: Clean up local build artifacts
run: |
rm -rf ${{ inputs.rn-project-path }}/android/build
rm -rf ${{ inputs.rn-project-path }}/android/.cxx
rm -rf ${{ inputs.rn-project-path }}/android/.gradle
rm -rf ${{ inputs.rn-project-path }}/android/app/build
rm -rf ${{ inputs.rn-project-path }}/android/app/.cxx
rm -rf ${{ inputs.rn-project-path }}/android/app/.gradle
rm -rf ${{ inputs.rn-project-path }}/android/app/build
shell: bash

# == AndroidApp ==

- name: Build native Android Brownfield app
Expand Down
18 changes: 15 additions & 3 deletions .github/actions/prepare-android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ inputs:
default: 'true'

run-yarn-build:
description: 'Whether to run yarn build'
description: 'Whether to run yarn build (usually false when ./.github/actions/setup already ran)'
required: false
default: 'true'
default: 'false'

gradle-workflow-job-context:
description: 'Segment Gradle cache per app/project (e.g. vanilla, expo54). Falls back to github.job when empty.'
required: false
default: ''

runs:
using: composite
Expand All @@ -24,6 +29,13 @@ runs:
distribution: 'zulu'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@6f229686ee4375cc4a86b2514c89bac4930e82c4 # v5
with:
# Validates all gradle-wrapper.jar files, caches Gradle User Home efficiently,
# and captures Build Scan links. Do not combine with actions/cache on ~/.gradle.
workflow-job-context: ${{ inputs.gradle-workflow-job-context != '' && inputs.gradle-workflow-job-context || github.job }}

- name: Free Disk Space (Ubuntu)
if: inputs.free-disk-space == 'true'
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
Expand All @@ -33,7 +45,7 @@ runs:
android: false
dotnet: true
haskell: true
large-packages: false
large-packages: true
docker-images: true
swap-storage: false

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/gradle-plugin-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ jobs:
free-disk-space: 'false'
run-yarn-build: 'false'

- name: Restore Gradle cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Run Detekt
working-directory: gradle-plugins/react/brownfield
run: ./gradlew detekt --no-daemon --stacktrace
Expand Down
16 changes: 16 additions & 0 deletions packages/brownfield-navigation/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"tasks": {
"build": {
"inputs": [
"src/**/*",
"bob.config.js",
"babel.config.js",
"tsconfig*.json",
"package.json"
],
"outputs": ["lib/**"]
}
}
}
8 changes: 7 additions & 1 deletion packages/brownfield/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"extends": ["//"],
"tasks": {
"build": {
"inputs": ["src/**/*"],
"inputs": [
"src/**/*",
"bob.config.js",
"babel.config.js",
"tsconfig*.json",
"package.json"
],
"outputs": ["dist/**"]
}
}
Expand Down
8 changes: 7 additions & 1 deletion packages/brownie/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"extends": ["//"],
"tasks": {
"build": {
"inputs": ["src/**/*"],
"inputs": [
"src/**/*",
"bob.config.js",
"babel.config.js",
"tsconfig*.json",
"package.json"
],
"outputs": ["lib/**"]
}
}
Expand Down
8 changes: 7 additions & 1 deletion packages/cli/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"extends": ["//"],
"tasks": {
"build": {
"inputs": ["src/**/*"],
"inputs": [
"src/**/*",
"bob.config.js",
"babel.config.js",
"tsconfig*.json",
"package.json"
],
"outputs": ["dist/**"]
},
"build:brownfield": {
Expand Down
8 changes: 7 additions & 1 deletion packages/react-native-brownfield/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"extends": ["//"],
"tasks": {
"build": {
"inputs": ["src/**/*"],
"inputs": [
"src/**/*",
"bob.config.js",
"babel.config.js",
"tsconfig*.json",
"package.json"
],
"outputs": ["lib/**"]
}
}
Expand Down
Loading