Skip to content

Commit

Permalink
fix(build): gradle/actions/setup-gradle is for setup only (#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Apr 30, 2024
1 parent 00a7dc5 commit f1f70fb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-planets-shop.md
@@ -0,0 +1,5 @@
---
"@rnx-kit/build": patch
---

Using `gradle/actions/setup-gradle` to execute Gradle is deprecated (see https://github.com/gradle/actions/blob/v3/docs/deprecation-upgrade-guide.md#using-the-action-to-execute-gradle-via-the-arguments-parameter-is-deprecated)
16 changes: 7 additions & 9 deletions .github/workflows/rnx-build.yml
Expand Up @@ -36,18 +36,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: android
cache-npm-dependencies: ${{ github.event.inputs.packageManager }}
- name: Install npm dependencies
run: ${{ github.event.inputs.packageManager }} install
- name: Build Android app
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: --no-daemon clean assembleDebug
build-root-directory: ${{ github.event.inputs.projectRoot }}/android
run: ./gradlew --no-daemon clean assembleDebug
shell: bash
working-directory: ${{ github.event.inputs.projectRoot }}/android
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -68,7 +66,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: ios
project-root: ${{ github.event.inputs.projectRoot }}
Expand Down Expand Up @@ -122,7 +120,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: macos
project-root: ${{ github.event.inputs.projectRoot }}
Expand Down Expand Up @@ -156,7 +154,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: windows
cache-npm-dependencies: ${{ github.event.inputs.packageManager }}
Expand Down
16 changes: 7 additions & 9 deletions incubator/build/workflows/github.yml
Expand Up @@ -36,18 +36,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: android
cache-npm-dependencies: ${{ github.event.inputs.packageManager }}
- name: Install npm dependencies
run: ${{ github.event.inputs.packageManager }} install
- name: Build Android app
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: --no-daemon clean assembleDebug
build-root-directory: ${{ github.event.inputs.projectRoot }}/android
run: ./gradlew --no-daemon clean assembleDebug
shell: bash
working-directory: ${{ github.event.inputs.projectRoot }}/android
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -68,7 +66,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: ios
project-root: ${{ github.event.inputs.projectRoot }}
Expand Down Expand Up @@ -122,7 +120,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: macos
project-root: ${{ github.event.inputs.projectRoot }}
Expand Down Expand Up @@ -156,7 +154,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.13
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@3.5.15
with:
platform: windows
cache-npm-dependencies: ${{ github.event.inputs.packageManager }}
Expand Down

0 comments on commit f1f70fb

Please sign in to comment.