mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
cf8ea8bbce
Co-authored-by: Cursor <cursoragent@cursor.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Windows x64 installer
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: "App version (e.g. 1.1.4)"
|
|
required: false
|
|
default: "1.1.4"
|
|
push:
|
|
tags:
|
|
- "win-x64-*"
|
|
|
|
concurrency:
|
|
group: desktop-windows-x64-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx6g
|
|
|
|
jobs:
|
|
windows-x64:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: x86_64-pc-windows-msvc
|
|
- name: Set version
|
|
shell: bash
|
|
run: |
|
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
V="${{ inputs.version }}"
|
|
else
|
|
V="${GITHUB_REF_NAME#win-x64-}"
|
|
fi
|
|
bash scripts/ci-set-version.sh "$V"
|
|
- name: Package Windows x64 installer
|
|
shell: bash
|
|
run: |
|
|
export FROMCHAT_PACKAGING_JDK="$JAVA_HOME"
|
|
./gradlew :app:desktop:packageBetaWindows -PbetaDesktop -PdesktopArch=x64 --no-daemon --console=plain
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: windows-x64-installer
|
|
path: app/desktop/build/distributions/release/FromChat-Setup-*-beta2.exe
|
|
if-no-files-found: error
|