Packages no longer carry Stockfish (about 14 MB instead of 95): the first analysis without an engine offers to download the official Stockfish 19 "universal" build from GitHub (pinned per platform with its SHA-256, checked before use, unpacked into the user's local data directory, test-started), then starts the analysis the user asked for. Settings -> Engines: download with progress and cancel, "file not found" with download again, removal with confirmation; "Choose engine file…" for any other engine. A system stockfish is offered first when there is one. ChessPenguin's Stockfish = bundled (Flatpak) or downloaded. macOS: release job and CI job on macos-14 build ChessPenguin.app (icon, Info.plist, ad-hoc signature) in a .dmg; Homebrew paths for a system stockfish. Not signed by Apple yet. Decisions 14-15; design docs/design/engine-download.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: System libraries
|
|
run: sudo apt-get update && sudo apt-get install -y pkg-config libasound2-dev libxkbcommon-dev libwayland-dev
|
|
- run: cargo fmt --all --check
|
|
- run: cargo clippy --workspace --all-targets --locked -- -D warnings
|
|
- run: cargo test --workspace --locked
|
|
|
|
windows-build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo build --locked -p chesspenguin
|
|
|
|
# Apple Silicon: the build and the app bundle (decision 15).
|
|
macos-build:
|
|
runs-on: macos-14
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo build --release --locked -p chesspenguin
|
|
- run: VERSION=0.0.0 packaging/macos/build-app.sh dist
|