Add build-android workflow #1
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: Build desktop app & publish it to github release | ||
on: | ||
workflow_dispatch: | ||
# push: | ||
# tags: | ||
# - v* | ||
jobs: | ||
build: | ||
name: Build android | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Build for supported platforms | ||
# https://github.com/electron/electron-packager/blob/ebcbd439ff3e0f6f92fa880ff28a8670a9bcf2ab/src/targets.js#L9 | ||
# 32-bit Linux unsupported as of 2019: https://www.electronjs.org/blog/linux-32bit-support | ||
os: [ubuntu-latest] | ||
arch: [x64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
- name: Install | ||
run: npm ci | ||
- name: build | ||
run: npm -w @pikatorrent/app run build:android:production |