Skip to content
Merged
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
35 changes: 17 additions & 18 deletions .github/actions/android-gradle-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Android Gradle build
description: Clean, generate codegen artifacts, build assemble{mode}, and stop Gradle
inputs:
android-dir:
description: Path to example/android directory
required: true
mode:
description: Build mode (Debug|Release)
required: true
android-dir:
description: Path to example/android directory
required: true
mode:
description: Build mode (Debug|Release)
required: true
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.android-dir }}"
chmod +x ./gradlew
./gradlew clean
./gradlew generateCodegenArtifactsFromSchema
./gradlew assemble${{ inputs.mode }} --no-daemon --build-cache
./gradlew --stop

using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.android-dir }}"
chmod +x ./gradlew
./gradlew clean
./gradlew generateCodegenArtifactsFromSchema
./gradlew assemble${{ inputs.mode }} --no-daemon --build-cache
./gradlew --stop
35 changes: 17 additions & 18 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Install package dependencies
description: Install dependencies using the provided package manager in a working directory
inputs:
pm:
description: Package manager (bun|yarn|pnpm|npm)
required: true
working-directory:
description: Directory to run the install in
required: true
pm:
description: Package manager (bun|yarn|pnpm|npm)
required: true
working-directory:
description: Directory to run the install in
required: true
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.working-directory }}"
case "${{ inputs.pm }}" in
bun|yarn|pnpm|npm) ;;
*) echo "Unsupported pm: ${{ inputs.pm }}" >&2; exit 1;;
esac
${{ inputs.pm }} install

using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.working-directory }}"
case "${{ inputs.pm }}" in
bun|yarn|pnpm|npm) ;;
*) echo "Unsupported pm: ${{ inputs.pm }}" >&2; exit 1;;
esac
${{ inputs.pm }} install
57 changes: 28 additions & 29 deletions .github/actions/ios-build-xcode/action.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
name: iOS xcodebuild
description: Build iOS workspace/scheme with xcpretty
inputs:
ios-dir:
description: Path to example/ios directory
required: true
scheme:
description: Xcode scheme to build
required: true
mode:
description: Build configuration (Debug|Release)
required: true
ios-dir:
description: Path to example/ios directory
required: true
scheme:
description: Xcode scheme to build
required: true
mode:
description: Build configuration (Debug|Release)
required: true
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
gem install xcpretty
cd "${{ inputs.ios-dir }}"
set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace "${SCHEME}.xcworkspace" \
-scheme "${SCHEME}" \
-sdk iphonesimulator \
-configuration "${{ inputs.mode }}" \
-destination 'platform=iOS Simulator,name=iPhone 16' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty
env:
SCHEME: ${{ inputs.scheme }}

using: composite
steps:
- shell: bash
run: |
set -euo pipefail
gem install xcpretty
cd "${{ inputs.ios-dir }}"
set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace "${SCHEME}.xcworkspace" \
-scheme "${SCHEME}" \
-sdk iphonesimulator \
-configuration "${{ inputs.mode }}" \
-destination 'platform=iOS Simulator,name=iPhone 16' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty
env:
SCHEME: ${{ inputs.scheme }}
35 changes: 17 additions & 18 deletions .github/actions/run-codegen-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Run codegen and build
description: Run nitro codegen, build the package, and execute post-script
inputs:
pm:
description: Package manager (bun|yarn|pnpm|npm)
required: true
working-directory:
description: Directory to run in
required: true
pm:
description: Package manager (bun|yarn|pnpm|npm)
required: true
working-directory:
description: Directory to run in
required: true
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.working-directory }}"
bunx nitro-codegen --logLevel="debug"
${{ inputs.pm }} run build
if [ -f post-script.js ]; then
node post-script.js
fi

using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.working-directory }}"
bunx nitro-codegen --logLevel="debug"
${{ inputs.pm }} run build
if [ -f post-script.js ]; then
node post-script.js
fi
29 changes: 14 additions & 15 deletions .github/actions/setup-yarn/action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Setup Yarn in working directory
description: Configure Yarn v4 with node-modules linker for the given directory
inputs:
working-directory:
description: Directory to run yarn config
required: true
working-directory:
description: Directory to run yarn config
required: true
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
corepack enable
cd "${{ inputs.working-directory }}"
yarn set version 4.6.0
yarn config set enableImmutableInstalls false
yarn config set nodeLinker node-modules
touch yarn.lock

using: composite
steps:
- shell: bash
run: |
set -euo pipefail
corepack enable
cd "${{ inputs.working-directory }}"
yarn set version 4.6.0
yarn config set enableImmutableInstalls false
yarn config set nodeLinker node-modules
touch yarn.lock
56 changes: 30 additions & 26 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
labels:
- 'dependencies'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
labels:
- 'dependencies'

- package-ecosystem: bun
directories:
- '/'
- '/assets/template'
schedule:
interval: 'daily'
commit-message:
prefix: "chore"
include: "scope"
groups:
rncli:
patterns:
- '@react-native-community/cli*'
babel:
patterns:
- '@babel/*'
react-native:
patterns:
- '@react-native/*'
- 'react-native'
- package-ecosystem: bun
directories:
- '/'
- '/assets/template'
schedule:
interval: 'daily'
commit-message:
prefix: 'chore'
include: 'scope'
groups:
rncli:
patterns:
- '@react-native-community/cli*'
babel:
patterns:
- '@babel/*'
react-native:
patterns:
- '@react-native/*'
- 'react-native'
nitro:
patterns:
- 'nitro-codegen'
- 'react-native-nitro-modules'
Loading