mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
7879ae681d
Co-authored-by: Cursor <cursoragent@cursor.com>
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
name: Release smoke
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/release.yml"
|
|
- ".github/workflows/release-smoke.yml"
|
|
- ".github/actions/**"
|
|
- "scripts/ci-*.sh"
|
|
- "app/desktop/build.gradle.kts"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: release-smoke-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx6g
|
|
|
|
jobs:
|
|
test-compile:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/setup-java-gradle
|
|
- run: bash scripts/ci-test-compile.sh
|
|
|
|
test-rust:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 25
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: x86_64-pc-windows-msvc
|
|
- uses: ./.github/actions/cache-cargo-windows
|
|
- name: Test Windows installer Rust workspace
|
|
shell: bash
|
|
working-directory: app/desktop/windows-setup
|
|
run: cargo test --workspace --release
|
|
|
|
verify-script:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Syntax-check CI scripts
|
|
run: |
|
|
set -euo pipefail
|
|
for script in scripts/ci-*.sh; do
|
|
bash -n "$script"
|
|
echo "OK $script"
|
|
done
|
|
- name: Dry-run asset verification patterns
|
|
run: |
|
|
V="9.9.9"
|
|
bash scripts/ci-create-smoke-fixtures.sh /tmp/release-assets "$V"
|
|
sudo apt-get update && sudo apt-get install -y rpm file unzip
|
|
CI_SMOKE=1 bash scripts/ci-verify-release-assets.sh "$V" /tmp/release-assets
|