Add Windows build support
This commit is contained in:
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@@ -41,6 +41,35 @@ jobs:
|
|||||||
name: ren-browser-linux
|
name: ren-browser-linux
|
||||||
path: build/linux
|
path: build/linux
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
|
||||||
|
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 Windows package
|
||||||
|
run: poetry run flet build windows
|
||||||
|
|
||||||
|
- name: Upload Windows artifact
|
||||||
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
||||||
|
with:
|
||||||
|
name: ren-browser-windows
|
||||||
|
path: build/windows
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@@ -82,7 +111,7 @@ jobs:
|
|||||||
path: build/apk
|
path: build/apk
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
needs: [build-linux, build-android]
|
needs: [build-linux, build-windows, build-android]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
permissions:
|
permissions:
|
||||||
@@ -97,6 +126,12 @@ jobs:
|
|||||||
name: ren-browser-linux
|
name: ren-browser-linux
|
||||||
path: ./artifacts/linux
|
path: ./artifacts/linux
|
||||||
|
|
||||||
|
- name: Download Windows artifact
|
||||||
|
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
||||||
|
with:
|
||||||
|
name: ren-browser-windows
|
||||||
|
path: ./artifacts/windows
|
||||||
|
|
||||||
- name: Download APK artifact
|
- name: Download APK artifact
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
||||||
with:
|
with:
|
||||||
@@ -110,6 +145,7 @@ jobs:
|
|||||||
draft: true
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
./artifacts/linux/*
|
./artifacts/linux/*
|
||||||
|
./artifacts/windows/*
|
||||||
./artifacts/apk/*
|
./artifacts/apk/*
|
||||||
name: Release ${{ github.ref_name }}
|
name: Release ${{ github.ref_name }}
|
||||||
body: |
|
body: |
|
||||||
@@ -117,4 +153,5 @@ jobs:
|
|||||||
|
|
||||||
This release contains:
|
This release contains:
|
||||||
- Linux binary package
|
- Linux binary package
|
||||||
|
- Windows binary package
|
||||||
- Android APK package
|
- Android APK package
|
||||||
Reference in New Issue
Block a user