mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 11:05:04 +03:00
Fix release workflow validation (composite action cache key, dispatch inputs).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,6 +11,6 @@ runs:
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
app/desktop/windows-setup/target
|
||||
key: cargo-windows-${{ runner.os }}-${{ hashFiles('app/desktop/windows-setup/Cargo.lock', 'app/desktop/windows-setup/**/*.rs') }}
|
||||
key: cargo-windows-${{ runner.os }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
cargo-windows-${{ runner.os }}-
|
||||
|
||||
@@ -11,10 +11,16 @@ runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: actions/setup-java@v4
|
||||
if: ${{ inputs.java-architecture != '' && inputs.java-architecture != 'none' }}
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "17"
|
||||
architecture: ${{ inputs.java-architecture }}
|
||||
- uses: actions/setup-java@v4
|
||||
if: ${{ inputs.java-architecture == '' || inputs.java-architecture == 'none' }}
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "17"
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
|
||||
@@ -11,10 +11,13 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
skip_publish:
|
||||
description: "Build only; skip GitHub Release upload"
|
||||
description: "Skip GitHub Release upload"
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
type: choice
|
||||
options:
|
||||
- "false"
|
||||
- "true"
|
||||
default: "false"
|
||||
|
||||
concurrency:
|
||||
group: release-${{ github.ref }}
|
||||
@@ -137,7 +140,7 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- arch: arm64
|
||||
java-architecture: ""
|
||||
java-architecture: none
|
||||
- arch: x64
|
||||
java-architecture: x64
|
||||
runs-on: macos-latest
|
||||
@@ -281,7 +284,7 @@ EOF
|
||||
if-no-files-found: error
|
||||
|
||||
publish:
|
||||
if: ${{ github.event_name != 'workflow_dispatch' || inputs.skip_publish == false }}
|
||||
if: ${{ github.event_name != 'workflow_dispatch' || inputs.skip_publish != 'true' }}
|
||||
needs:
|
||||
- resolve-version
|
||||
- windows-package
|
||||
|
||||
Reference in New Issue
Block a user