update pdfium version to 5968 #258
Workflow file for this run
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
name: WASM | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
- 'extras/images/**' | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { name: "Ubuntu", os: "ubuntu-20.04", target: "wasm" } | |
python-version: [3.7] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade PIP | |
run: python3 -m pip install --upgrade pip setuptools wheel | |
- name: Display Python version | |
run: python3 --version | |
- name: Display PIP version | |
run: python3 -m pip --version | |
- name: Python requirements | |
run: python3 -m pip install -r requirements.txt --user | |
- name: Docker build | |
run: docker build -t pdfium-wasm -f docker/wasm/Dockerfile docker/wasm | |
- name: Docker test | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm echo "test" | |
- name: PDFium | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py build-pdfium-${{ matrix.config.target }} | |
- name: Patch | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py patch-${{ matrix.config.target }} | |
- name: Patch - Check | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py patch-${{ matrix.config.target }} | |
- name: Build | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py build-${{ matrix.config.target }} | |
- name: Install | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py install-${{ matrix.config.target }} | |
- name: Test | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py test-${{ matrix.config.target }} | |
- name: Generate | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py generate-${{ matrix.config.target }} | |
- name: Archive | |
run: docker run -v ${PWD}:/app -i -t=false pdfium-wasm python3 make.py archive-${{ matrix.config.target }} | |
- name: Save | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifact-${{ matrix.config.target }} | |
path: ${{ matrix.config.target }}.tgz | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Load | |
uses: actions/download-artifact@v2 | |
with: | |
name: artifact-wasm | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload release asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: wasm.tgz | |
asset_name: wasm.tgz | |
asset_content_type: application/tar+gzip |