From 2b5f253882e913709378861ccf71d44f2a2f8e45 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Mon, 13 May 2024 18:38:39 +0800 Subject: [PATCH 1/4] feat(action): fix v8 build error --- .github/workflows/3rd_prebuilt_v8.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/3rd_prebuilt_v8.yml b/.github/workflows/3rd_prebuilt_v8.yml index 6b1f2dc424d..b7774e0461a 100644 --- a/.github/workflows/3rd_prebuilt_v8.yml +++ b/.github/workflows/3rd_prebuilt_v8.yml @@ -192,6 +192,7 @@ jobs: - name: Sync third_party working-directory: ./v8 run: | + export PATH=/usr/local/opt/depot_tools:$PATH echo "target_os = ['android']" >> ../.gclient gclient sync -D - name: Prepare android_ndk @@ -218,10 +219,12 @@ jobs: - name: Generate ${{ matrix.arch }} working-directory: ./v8 run: | + export PATH=/usr/local/opt/depot_tools:$PATH gn gen out --args="target_os=\"android\" target_cpu=\"${{ matrix.cpu }}\" v8_target_cpu=\"${{ matrix.cpu }}\" android_ndk_root=\"${ANDROID_NDK_HOME}\" is_component_build=false v8_monolithic=true android32_ndk_api_level=21 android64_ndk_api_level=21 clang_use_chrome_plugins=false use_thin_lto=false use_custom_libcxx=false ${{ github.event.inputs.build_type == 'release' && 'is_debug=false is_official_build=true' || 'is_debug=true' }} ${{ github.event.inputs.build_args }}" - name: Compile ${{ matrix.arch }} working-directory: ./v8 run: | + export PATH=/usr/local/opt/depot_tools:$PATH ninja -C out v8_monolith - name: Prepare package working-directory: ./v8/out From ed75e0a1fc991c465389657f7b8e839020bd0d88 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Mon, 13 May 2024 21:12:21 +0800 Subject: [PATCH 2/4] feat(action): fix v8 compiler action --- .github/workflows/3rd_prebuilt_v8.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/3rd_prebuilt_v8.yml b/.github/workflows/3rd_prebuilt_v8.yml index b7774e0461a..c129a777332 100644 --- a/.github/workflows/3rd_prebuilt_v8.yml +++ b/.github/workflows/3rd_prebuilt_v8.yml @@ -220,6 +220,7 @@ jobs: working-directory: ./v8 run: | export PATH=/usr/local/opt/depot_tools:$PATH + ./build/install-build-deps.sh gn gen out --args="target_os=\"android\" target_cpu=\"${{ matrix.cpu }}\" v8_target_cpu=\"${{ matrix.cpu }}\" android_ndk_root=\"${ANDROID_NDK_HOME}\" is_component_build=false v8_monolithic=true android32_ndk_api_level=21 android64_ndk_api_level=21 clang_use_chrome_plugins=false use_thin_lto=false use_custom_libcxx=false ${{ github.event.inputs.build_type == 'release' && 'is_debug=false is_official_build=true' || 'is_debug=true' }} ${{ github.event.inputs.build_args }}" - name: Compile ${{ matrix.arch }} working-directory: ./v8 From 018b45a68d34473dc0e900c96d23534bcfe00866 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Tue, 14 May 2024 12:06:56 +0800 Subject: [PATCH 3/4] feat(action): fix v8 compiler action --- .github/workflows/3rd_prebuilt_v8.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/3rd_prebuilt_v8.yml b/.github/workflows/3rd_prebuilt_v8.yml index c129a777332..164a408d819 100644 --- a/.github/workflows/3rd_prebuilt_v8.yml +++ b/.github/workflows/3rd_prebuilt_v8.yml @@ -156,6 +156,7 @@ jobs: runs-on: [self-hosted, linux, shared] container: image: ghcr.io/${{ needs.context_in_lowercase.outputs.repository_owner }}/android-release:latest + options: --user root strategy: matrix: cpu: [arm, arm64, x86, x64] @@ -220,6 +221,7 @@ jobs: working-directory: ./v8 run: | export PATH=/usr/local/opt/depot_tools:$PATH + sudo apt-get install lsb-release ./build/install-build-deps.sh gn gen out --args="target_os=\"android\" target_cpu=\"${{ matrix.cpu }}\" v8_target_cpu=\"${{ matrix.cpu }}\" android_ndk_root=\"${ANDROID_NDK_HOME}\" is_component_build=false v8_monolithic=true android32_ndk_api_level=21 android64_ndk_api_level=21 clang_use_chrome_plugins=false use_thin_lto=false use_custom_libcxx=false ${{ github.event.inputs.build_type == 'release' && 'is_debug=false is_official_build=true' || 'is_debug=true' }} ${{ github.event.inputs.build_args }}" - name: Compile ${{ matrix.arch }} From 3581c8c6a8c1a7ae0ba8bea1ec28011063cd0fae Mon Sep 17 00:00:00 2001 From: zealotchen Date: Tue, 14 May 2024 16:22:31 +0800 Subject: [PATCH 4/4] feat(action): fix v8 compiler action --- .github/workflows/3rd_prebuilt_v8.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/3rd_prebuilt_v8.yml b/.github/workflows/3rd_prebuilt_v8.yml index 164a408d819..1bb1ae7a720 100644 --- a/.github/workflows/3rd_prebuilt_v8.yml +++ b/.github/workflows/3rd_prebuilt_v8.yml @@ -221,13 +221,12 @@ jobs: working-directory: ./v8 run: | export PATH=/usr/local/opt/depot_tools:$PATH - sudo apt-get install lsb-release - ./build/install-build-deps.sh gn gen out --args="target_os=\"android\" target_cpu=\"${{ matrix.cpu }}\" v8_target_cpu=\"${{ matrix.cpu }}\" android_ndk_root=\"${ANDROID_NDK_HOME}\" is_component_build=false v8_monolithic=true android32_ndk_api_level=21 android64_ndk_api_level=21 clang_use_chrome_plugins=false use_thin_lto=false use_custom_libcxx=false ${{ github.event.inputs.build_type == 'release' && 'is_debug=false is_official_build=true' || 'is_debug=true' }} ${{ github.event.inputs.build_args }}" - name: Compile ${{ matrix.arch }} working-directory: ./v8 run: | export PATH=/usr/local/opt/depot_tools:$PATH + apt-get install -y ninja-build ninja -C out v8_monolith - name: Prepare package working-directory: ./v8/out