Skip to content

Commit

Permalink
Musl: add arm64 v8
Browse files Browse the repository at this point in the history
Relates to #133 and #134
  • Loading branch information
bblanchon committed Nov 5, 2023
1 parent 9d2ea78 commit e2cb2b3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ jobs:
enable_v8: true

linux_musl_arm64:
name: Linux musl arm64
name: Linux musl ARM64
uses: ./.github/workflows/build.yml
with:
branch: ${{ github.event.inputs.branch }}
Expand All @@ -280,6 +280,19 @@ jobs:
target_libc: musl
enable_v8: false

linux_musl_arm64_v8:
name: Linux musl ARM64 V8
if: github.event.inputs.enable_v8 == 'true'
uses: ./.github/workflows/build.yml
with:
branch: ${{ github.event.inputs.branch }}
version: ${{ github.event.inputs.version }}
is_debug: ${{ github.event.inputs.is_debug == 'true' }}
target_os: linux
target_cpu: arm64
target_libc: musl
enable_v8: true

linux_musl_x64:
name: Linux musl x64
uses: ./.github/workflows/build.yml
Expand Down Expand Up @@ -644,6 +657,7 @@ jobs:
- linux_arm64
- linux_arm64_v8
- linux_musl_arm64
- linux_musl_arm64_v8
- linux_musl_x64
- linux_musl_x64_v8
- linux_musl_x86
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ Here are the download links for latest release:
</tr>

<tr>
<td rowspan="2">Linux<br>musl</td>
<td rowspan="3">Linux<br>musl</td>
<td>arm64</td>
<td><a href="https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux-musl-arm64.tgz">pdfium-linux-musl-arm64.tgz</a></td>
<td><a href="https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-v8-linux-musl-arm64.tgz">pdfium-v8-linux-musl-arm64.tgz</a></td>
</tr>
<tr>
<td>x64</td>
<td><a href="https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux-musl-x64.tgz">pdfium-linux-musl-x64.tgz</a></td>
<td><a href="https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-v8-linux-musl-x64.tgz">pdfium-v8-linux-musl-x64.tgz</a></td>
Expand Down
12 changes: 11 additions & 1 deletion steps/05-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,17 @@ mkdir -p "$BUILD"
echo 'is_musl = true'
echo 'is_clang = false'
echo 'use_custom_libcxx = false'
[ "$ENABLE_V8" == "true" ] && echo "v8_snapshot_toolchain = \"//build/toolchain/linux:$TARGET_CPU\""
[ "$ENABLE_V8" == "true" ] && case "$TARGET_CPU" in
arm)
echo "v8_snapshot_toolchain = \"//build/toolchain/linux:clang_x86_v8_arm\""
;;
arm64)
echo "v8_snapshot_toolchain = \"//build/toolchain/linux:clang_x64_v8_arm64\""
;;
*)
echo "v8_snapshot_toolchain = \"//build/toolchain/linux:$TARGET_CPU\""
;;
esac
;;
esac

Expand Down

0 comments on commit e2cb2b3

Please sign in to comment.