-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from paulocoutinhox/pdfium-update
pdfium updated to 6183
- Loading branch information
Showing
14 changed files
with
275 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,60 +16,78 @@ jobs: | |
matrix: | ||
config: | ||
- { name: "Ubuntu", os: "ubuntu-20.04", target: "android" } | ||
python-version: [3.7] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Install System Packages | ||
run: | | ||
sudo apt-get -y update && \ | ||
sudo apt-get remove -y php7.4-common && \ | ||
sudo rm -rf /var/lib/apt/lists/* && \ | ||
sudo apt-get clean | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "3.10" | ||
|
||
- name: Upgrade PIP | ||
run: python3 -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Display Python version | ||
run: python3 --version | ||
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: "3.24.0" | ||
|
||
- name: Display PIP version | ||
run: python3 -m pip --version | ||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
with: | ||
version: "1.10.0" | ||
|
||
- name: Python requirements | ||
run: python3 -m pip install -r requirements.txt --user | ||
- name: Install NDK | ||
uses: nttld/setup-ndk@v1 | ||
id: setup-ndk | ||
with: | ||
ndk-version: r25c | ||
add-to-path: true | ||
|
||
- name: Remove trash | ||
- name: Verify | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
python3 --version | ||
cmake --version | ||
ninja --version | ||
ndk-build -version | ||
- name: Python requirements | ||
run: python3 -m pip install -r requirements.txt --user | ||
|
||
- name: Docker build | ||
run: docker build -t pdfium-android -f docker/android/Dockerfile docker/android | ||
- name: Depot tools | ||
run: python3 make.py build-depot-tools | ||
|
||
- name: Docker test | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android echo "test" | ||
- name: Environment | ||
run: echo "$PWD/build/depot-tools" >> $GITHUB_PATH | ||
|
||
- name: PDFium | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py build-pdfium-${{ matrix.config.target }} | ||
run: python3 make.py build-pdfium-${{ matrix.config.target }} | ||
|
||
- name: Patch | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py patch-${{ matrix.config.target }} | ||
run: python3 make.py patch-${{ matrix.config.target }} | ||
|
||
- name: Patch - Check | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py patch-${{ matrix.config.target }} | ||
run: python3 make.py patch-${{ matrix.config.target }} | ||
|
||
- name: Build | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py build-${{ matrix.config.target }} | ||
run: python3 make.py build-${{ matrix.config.target }} | ||
|
||
- name: Install | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py install-${{ matrix.config.target }} | ||
run: python3 make.py install-${{ matrix.config.target }} | ||
|
||
- name: Test | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py test-${{ matrix.config.target }} | ||
run: python3 make.py test-${{ matrix.config.target }} | ||
|
||
- name: Archive | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android python3 make.py archive-${{ matrix.config.target }} | ||
run: python3 make.py archive-${{ matrix.config.target }} | ||
|
||
- name: Save | ||
uses: actions/upload-artifact@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,6 @@ on: | |
- 'docs/**' | ||
- 'extras/images/**' | ||
|
||
env: | ||
CMAKE_VERSION: "3.24.0" | ||
NINJA_VERSION: "1.10.0" | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
|
@@ -20,66 +16,33 @@ jobs: | |
matrix: | ||
config: | ||
- { name: "macOS", os: "macos-latest", target: "ios" } | ||
python-version: [3.7] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "3.10" | ||
|
||
- name: Upgrade PIP | ||
run: python3 -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Display Python version | ||
run: python3 --version | ||
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: "3.24.0" | ||
|
||
- name: Display PIP version | ||
run: python3 -m pip --version | ||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
with: | ||
version: "1.10.0" | ||
|
||
- name: Install Ninja and CMake | ||
id: cmake_and_ninja | ||
shell: cmake -P {0} | ||
- name: Verify | ||
run: | | ||
set(cmake_version $ENV{CMAKE_VERSION}) | ||
set(ninja_version $ENV{NINJA_VERSION}) | ||
message(STATUS "Using host CMake version: ${CMAKE_VERSION}") | ||
if ("${{ runner.os }}" STREQUAL "Windows") | ||
set(ninja_suffix "win.zip") | ||
set(cmake_suffix "win64-x64.zip") | ||
set(cmake_dir "cmake-${cmake_version}-win64-x64/bin") | ||
elseif ("${{ runner.os }}" STREQUAL "Linux") | ||
set(ninja_suffix "linux.zip") | ||
set(cmake_suffix "Linux-x86_64.tar.gz") | ||
set(cmake_dir "cmake-${cmake_version}-Linux-x86_64/bin") | ||
elseif ("${{ runner.os }}" STREQUAL "macOS") | ||
set(ninja_suffix "mac.zip") | ||
set(cmake_suffix "Darwin-x86_64.tar.gz") | ||
set(cmake_dir "cmake-${cmake_version}-Darwin-x86_64/CMake.app/Contents/bin") | ||
endif() | ||
set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v${ninja_version}/ninja-${ninja_suffix}") | ||
file(DOWNLOAD "${ninja_url}" ./ninja.zip SHOW_PROGRESS) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ninja.zip) | ||
set(cmake_url "https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cmake-${cmake_version}-${cmake_suffix}") | ||
file(DOWNLOAD "${cmake_url}" ./cmake.zip SHOW_PROGRESS) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./cmake.zip) | ||
# Save the path for other steps | ||
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/${cmake_dir}" cmake_dir) | ||
message("::set-output name=cmake_dir::${cmake_dir}") | ||
if (NOT "${{ runner.os }}" STREQUAL "Windows") | ||
execute_process( | ||
COMMAND chmod +x ninja | ||
COMMAND chmod +x ${cmake_dir}/cmake | ||
) | ||
endif() | ||
python3 --version | ||
cmake --version | ||
ninja --version | ||
- name: Python requirements | ||
run: python3 -m pip install -r requirements.txt --user | ||
|
@@ -88,9 +51,7 @@ jobs: | |
run: python3 make.py build-depot-tools | ||
|
||
- name: Environment | ||
run: | | ||
echo "$PWD/build/depot-tools" >> $GITHUB_PATH | ||
echo "FORCE_MAC_SDK_MIN=10.15" >> $GITHUB_ENV | ||
run: echo "$PWD/build/depot-tools" >> $GITHUB_PATH | ||
|
||
- name: PDFium | ||
run: python3 make.py build-pdfium-${{ matrix.config.target }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,6 @@ on: | |
- 'docs/**' | ||
- 'extras/images/**' | ||
|
||
env: | ||
CMAKE_VERSION: "3.24.0" | ||
NINJA_VERSION: "1.10.0" | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
|
@@ -19,67 +15,34 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
config: | ||
- { name: "macOS", os: "macos-12", target: "macos" } | ||
python-version: [3.7] | ||
- { name: "macOS", os: "macos-latest", target: "macos" } | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "3.10" | ||
|
||
- name: Upgrade PIP | ||
run: python3 -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Display Python version | ||
run: python3 --version | ||
- name: Install CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: "3.24.0" | ||
|
||
- name: Display PIP version | ||
run: python3 -m pip --version | ||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
with: | ||
version: "1.10.0" | ||
|
||
- name: Install Ninja and CMake | ||
id: cmake_and_ninja | ||
shell: cmake -P {0} | ||
- name: Verify | ||
run: | | ||
set(cmake_version $ENV{CMAKE_VERSION}) | ||
set(ninja_version $ENV{NINJA_VERSION}) | ||
message(STATUS "Using host CMake version: ${CMAKE_VERSION}") | ||
if ("${{ runner.os }}" STREQUAL "Windows") | ||
set(ninja_suffix "win.zip") | ||
set(cmake_suffix "win64-x64.zip") | ||
set(cmake_dir "cmake-${cmake_version}-win64-x64/bin") | ||
elseif ("${{ runner.os }}" STREQUAL "Linux") | ||
set(ninja_suffix "linux.zip") | ||
set(cmake_suffix "Linux-x86_64.tar.gz") | ||
set(cmake_dir "cmake-${cmake_version}-Linux-x86_64/bin") | ||
elseif ("${{ runner.os }}" STREQUAL "macOS") | ||
set(ninja_suffix "mac.zip") | ||
set(cmake_suffix "Darwin-x86_64.tar.gz") | ||
set(cmake_dir "cmake-${cmake_version}-Darwin-x86_64/CMake.app/Contents/bin") | ||
endif() | ||
set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v${ninja_version}/ninja-${ninja_suffix}") | ||
file(DOWNLOAD "${ninja_url}" ./ninja.zip SHOW_PROGRESS) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ninja.zip) | ||
set(cmake_url "https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cmake-${cmake_version}-${cmake_suffix}") | ||
file(DOWNLOAD "${cmake_url}" ./cmake.zip SHOW_PROGRESS) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./cmake.zip) | ||
# Save the path for other steps | ||
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/${cmake_dir}" cmake_dir) | ||
message("::set-output name=cmake_dir::${cmake_dir}") | ||
if (NOT "${{ runner.os }}" STREQUAL "Windows") | ||
execute_process( | ||
COMMAND chmod +x ninja | ||
COMMAND chmod +x ${cmake_dir}/cmake | ||
) | ||
endif() | ||
python3 --version | ||
cmake --version | ||
ninja --version | ||
- name: Python requirements | ||
run: python3 -m pip install -r requirements.txt --user | ||
|
@@ -88,9 +51,7 @@ jobs: | |
run: python3 make.py build-depot-tools | ||
|
||
- name: Environment | ||
run: | | ||
echo "$PWD/build/depot-tools" >> $GITHUB_PATH | ||
echo "FORCE_MAC_SDK_MIN=10.15" >> $GITHUB_ENV | ||
run: echo "$PWD/build/depot-tools" >> $GITHUB_PATH | ||
|
||
- name: PDFium | ||
run: python3 make.py build-pdfium-${{ matrix.config.target }} | ||
|
Oops, something went wrong.