Skip to content

Commit

Permalink
Merge branch 'Tencent:master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pba-cra authored Feb 1, 2023
2 parents 16ad1fc + ae8b60f commit a5b2220
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/3rd_prebuilt_v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
android_prebuilt:
if: github.event.inputs.is_build_for_android == 'true'
needs: context_in_lowercase
runs-on: [self-hosted, linux]
runs-on: [self-hosted, linux, shared]
container:
image: ghcr.io/${{ needs.context_in_lowercase.outputs.repository_owner }}/android-release:latest
strategy:
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
linux_prebuilt:
if: github.event.inputs.is_build_for_linux == 'true'
needs: context_in_lowercase
runs-on: [self-hosted, linux]
runs-on: [self-hosted, linux, shared]
container:
image: ghcr.io/${{ needs.context_in_lowercase.outputs.repository_owner }}/linux-release:latest
strategy:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/android_build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ on:
- 'settings.gradle'
- 'gradlew'
- 'gradlew.bat'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
android_build_tests:
runs-on: ${{ github.repository == 'Tencent/Hippy' && fromJson('[''self-hosted'', ''linux'']') || 'ubuntu-latest' }}
runs-on: ${{ github.repository == 'Tencent/Hippy' && fromJson('[''self-hosted'', ''linux'', ''shared'']') || 'ubuntu-latest' }}
container:
image: ghcr.io/tencent/android-release:latest # repository name must be lowercase(${{ github.repository_owner }})
strategy:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/android_build_tests_bypass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
- 'settings.gradle'
- 'gradlew'
- 'gradlew.bat'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
android_build_tests:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
build_images:
needs: changed_images
runs-on: ${{ github.repository == 'Tencent/Hippy' && fromJson('[''self-hosted'', ''linux'']') || 'ubuntu-latest' }}
runs-on: ${{ github.repository == 'Tencent/Hippy' && fromJson('[''self-hosted'', ''linux'', ''shared'']') || 'ubuntu-latest' }}
strategy:
matrix:
images: ${{ fromJson(needs.changed_images.outputs.changed_images) }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh_issue_crash_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
jobs:
triage:
if: github.repository == 'Tencent/Hippy' && contains(github.event.issue.title, 'crash')
runs-on: [self-hosted, linux]
runs-on: [self-hosted, linux, shared]
container:
image: node:latest
outputs:
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
|| needs.triage.outputs.architecture == 'arm64'
|| needs.triage.outputs.architecture == 'x86'
|| needs.triage.outputs.architecture == 'x86_64')
runs-on: [self-hosted, linux]
runs-on: [self-hosted, linux, shared]
container:
image: ghcr.io/${{ needs.triage.outputs.repository_owner }}/android-release:latest
steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/gh_pr_merge_guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types:
- auto_merge_enabled
- auto_merge_disabled
- synchronize

jobs:
merge_guard:
Expand All @@ -19,3 +20,8 @@ jobs:
if: github.repository == 'Tencent/Hippy' && github.event.action == 'auto_merge_disabled'
run: |
exit -1
- name: Synchronize # Update Branch
if: github.event.action == 'synchronize' && github.event.pull_request.auto_merge
run: |
echo "Auto-merge is enabled by a ${{ github.event.pull_request.auto_merge.enabled_by.login }}. ${{ github.event.pull_request.auto_merge.enabled_by.type == 'Bot' && 'Passing' || 'Blocking' }}."
exit ${{ github.event.pull_request.auto_merge.enabled_by.type == 'Bot' && '0' || '-1' }}
5 changes: 5 additions & 0 deletions buildconfig/cmake/InfraPackagesModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ macro(InfraPackage_Add packageName)
list(APPEND FetchContent_Declare_ARG URL_HASH ${ARG_REMOTE_HASH})
endif ()

cmake_policy(PUSH)
if (POLICY CMP0135)
cmake_policy(SET CMP0135 NEW) # valid for DOWNLOAD_EXTRACT_TIMESTAMP option in CMake 3.24 and later
endif ()
FetchContent_Declare(${FetchContent_Declare_ARG})
cmake_policy(POP)
FetchContent_MakeAvailable(${packageNameLower})
set(__return True)
endif ()
Expand Down

0 comments on commit a5b2220

Please sign in to comment.