|
@@ -82,8 +82,8 @@ runs:
|
|
|
--lto=default \
|
|
--lto=default \
|
|
|
--defconfig_fragment=//common:arch/arm64/configs/wild_gki.fragment \
|
|
--defconfig_fragment=//common:arch/arm64/configs/wild_gki.fragment \
|
|
|
--disk_cache=/home/runner/.cache/bazel \
|
|
--disk_cache=/home/runner/.cache/bazel \
|
|
|
- --dist_dir=dist \
|
|
|
|
|
- //common:kernel_aarch64_dist
|
|
|
|
|
|
|
+ //common:kernel_aarch64_dist \
|
|
|
|
|
+ -- --dist_dir=dist
|
|
|
else
|
|
else
|
|
|
tools/bazel build \
|
|
tools/bazel build \
|
|
|
--config=fast \
|
|
--config=fast \
|
|
@@ -91,8 +91,8 @@ runs:
|
|
|
--lto=default \
|
|
--lto=default \
|
|
|
--defconfig_fragment=//common:arch/arm64/configs/wild_gki.fragment \
|
|
--defconfig_fragment=//common:arch/arm64/configs/wild_gki.fragment \
|
|
|
--disk_cache=/home/runner/.cache/bazel \
|
|
--disk_cache=/home/runner/.cache/bazel \
|
|
|
- --distdir=dist \
|
|
|
|
|
- //common:kernel_aarch64_dist
|
|
|
|
|
|
|
+ //common:kernel_aarch64_dist \
|
|
|
|
|
+ -- --distdir=dist
|
|
|
fi
|
|
fi
|
|
|
tools/bazel info output_base
|
|
tools/bazel info output_base
|
|
|
fi
|
|
fi
|
|
@@ -102,15 +102,9 @@ runs:
|
|
|
|
|
|
|
|
- name: 'Gather Build Artifacts'
|
|
- name: 'Gather Build Artifacts'
|
|
|
shell: bash
|
|
shell: bash
|
|
|
- if: inputs.bypass == true
|
|
|
|
|
working-directory: ${{ github.workspace }}
|
|
working-directory: ${{ github.workspace }}
|
|
|
run: |
|
|
run: |
|
|
|
set -euo pipefail
|
|
set -euo pipefail
|
|
|
- PATCH_FILE="${{ github.action_path }}/patches/bypass.patch"
|
|
|
|
|
- if [ -f "$PATCH_FILE" ]; then
|
|
|
|
|
- patch -d "${{ github.workspace }}/AnyKernel3" -p1 < "$PATCH_FILE"
|
|
|
|
|
- fi
|
|
|
|
|
-
|
|
|
|
|
if [ -f "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" ]; then
|
|
if [ -f "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" ]; then
|
|
|
if [[ ${{ inputs.bypass }} == "true" ]]; then
|
|
if [[ ${{ inputs.bypass }} == "true" ]]; then
|
|
|
cp "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" "${{ github.workspace }}/AnyKernel3/Bypass-Image"
|
|
cp "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" "${{ github.workspace }}/AnyKernel3/Bypass-Image"
|
|
@@ -130,3 +124,14 @@ runs:
|
|
|
|
|
|
|
|
exit 1
|
|
exit 1
|
|
|
|
|
|
|
|
|
|
+ - name: 'Gather Build Artifacts'
|
|
|
|
|
+ shell: bash
|
|
|
|
|
+ if: inputs.bypass == true
|
|
|
|
|
+ working-directory: ${{ github.workspace }}
|
|
|
|
|
+ run: |
|
|
|
|
|
+ set -euo pipefail
|
|
|
|
|
+ PATCH_FILE="${{ github.action_path }}/patches/bypass.patch"
|
|
|
|
|
+ if [ -f "$PATCH_FILE" ]; then
|
|
|
|
|
+ patch -d "${{ github.workspace }}/AnyKernel3" -p1 < "$PATCH_FILE"
|
|
|
|
|
+ fi
|
|
|
|
|
+
|