Skip to content

Commit

Permalink
fix android github flow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocoutinhox committed Dec 15, 2023
1 parent 3b17b18 commit a5297b1
Showing 1 changed file with 43 additions and 21 deletions.
64 changes: 43 additions & 21 deletions .github/old-flow/android.yml → .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a5297b1

Please sign in to comment.