Files
Browser/.github/workflows/build.yml
Sudo-Ivan 6965a6a402 update
2025-05-29 16:28:19 -05:00

81 lines
2.0 KiB
YAML

name: Build APK and Linux
on:
push:
tags:
- 'v*.*.*'
jobs:
build-linux:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev cmake ninja-build clang pkg-config libgtk-3-dev liblzma-dev
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Install Poetry and dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install --without dev
- name: Build Linux package
run: poetry run flet build linux
- name: Upload Linux artifact
uses: actions/upload-artifact@v4
with:
name: ren-browser-linux
path: build/linux
build-android:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Install Android dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build clang pkg-config
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Install Poetry and dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install --without dev
- name: Build Android APK
run: poetry run flet build apk
- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: ren-browser-apk
path: build/apk