-
-
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.
- Loading branch information
1 parent
3b17b18
commit a5297b1
Showing
1 changed file
with
43 additions
and
21 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 |
---|---|---|
|
@@ -20,6 +20,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- 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: | ||
|
@@ -28,47 +35,62 @@ jobs: | |
- 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: Docker build | ||
run: docker build -t pdfium-android -f docker/android/Dockerfile docker/android | ||
- name: Python requirements | ||
run: python3 -m pip install -r requirements.txt --user | ||
|
||
- name: Docker test | ||
run: docker run -v ${PWD}:/app -i -t=false pdfium-android echo "test" | ||
- name: Depot tools | ||
run: python3 make.py build-depot-tools | ||
|
||
- 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: Install Build Dependencies | ||
run: ./build/android/pdfium/install-build-deps.sh | ||
|
||
- 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 | ||
|