Skip to content

Build and Deploy

Build and Deploy #36

Workflow file for this run

name: Build and Deploy
on:
workflow_dispatch:
pull_request:
types:
- closed
branches:
- 'wpe-android'
jobs:
build:
if: ${{ (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/wpe-android') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) }}
runs-on: self-hosted
strategy:
matrix:
target: [arm64, x86_64]
steps:
- name: Fetch source code
uses: actions/[email protected]
- name: Bootstrap Cerbero
run: |
ANDROID_CONFIG=${{ matrix.target }}
ANDROID_CONFIG=cross-android-${ANDROID_CONFIG//_/-}.cbc
./cerbero-uninstalled -c ./config/${ANDROID_CONFIG} bootstrap
- name: Package dependencies
run: |
ANDROID_CONFIG=${{ matrix.target }}
ANDROID_CONFIG=cross-android-${ANDROID_CONFIG//_/-}.cbc
./cerbero-uninstalled -c ./config/${ANDROID_CONFIG} package -f wpewebkit
- name: Store packages
uses: actions/[email protected]
with:
name: wpe-deps-${{ matrix.target }}
path: ./wpewebkit-android-${{ matrix.target }}*
if-no-files-found: error
- name: Upload packages to wpewebkit.org
run: |
python3 ./.github/workflows/upload.py "./wpewebkit-android-${{ matrix.target }}*" || \
echo "**:warning: WARNING :warning:** Cannot upload ./wpewebkit-android-${{ matrix.target }}... files to wpewebkit.org" >> $GITHUB_STEP_SUMMARY
exit 0
env:
UPLOAD_KEY_PASSWD: ${{ secrets.UPLOAD_KEY_PASSWD }}
UPLOAD_SSH_KNOWN_HOSTS: ${{ secrets.UPLOAD_SSH_KNOWN_HOSTS }}