mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-25 02:47:33 -06:00
Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba145e9405 | ||
|
|
f7d7c0288c | ||
|
|
e65d188747 | ||
|
|
e05b7fe86f | ||
|
|
e3bb06a298 | ||
|
|
cd709ea0a9 | ||
|
|
d1b0bfc3f9 | ||
|
|
fd24c1ab3f | ||
|
|
652a1596aa | ||
|
|
ac76375d74 | ||
|
|
72453d9def | ||
|
|
76f5d4b817 |
@@ -0,0 +1,6 @@
|
|||||||
|
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
|
||||||
|
reviews:
|
||||||
|
auto_review:
|
||||||
|
# Dependabot bumps are checked by CI; skip CodeRabbit reviews on them.
|
||||||
|
ignore_usernames:
|
||||||
|
- "dependabot[bot]"
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# The CLAUDE.md quality gate (`cargo xtask ci`: fmt, clippy -D warnings, tests, assets, layers,
|
||||||
|
# wasm) on every pull request and every push to main, so a merge burst can't land a red tree that
|
||||||
|
# only the next contributor's local run discovers.
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Same craft-fonts commit as release.yml and freebsd.yml, so layout tests see the fonts a
|
||||||
|
# release build embeds (the checkout is an optional build input, see crates/fonts/build.rs).
|
||||||
|
CRAFT_FONTS_REF: 8dcdacd5153e64560d109541a47d806f26f048c0
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
gate:
|
||||||
|
name: cargo xtask ci
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
timeout-minutes: 60
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
CARGO_INCREMENTAL: "0"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
|
- name: Check out craft-fonts
|
||||||
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
with:
|
||||||
|
repository: storytold/craft-fonts
|
||||||
|
ref: ${{ env.CRAFT_FONTS_REF }}
|
||||||
|
path: craft-fonts
|
||||||
|
|
||||||
|
- name: Install Linux build dependencies (winit, wgpu, rfd)
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
pkg-config libxkbcommon-dev libwayland-dev libx11-dev libxcursor-dev libxrandr-dev \
|
||||||
|
libxi-dev libgtk-3-dev libfontconfig1-dev libfreetype-dev mesa-vulkan-drivers
|
||||||
|
|
||||||
|
- name: Install Rust (stable + clippy, rustfmt, wasm32)
|
||||||
|
run: |
|
||||||
|
rustup toolchain install stable --profile minimal --component clippy,rustfmt \
|
||||||
|
--target wasm32-unknown-unknown
|
||||||
|
rustup default stable
|
||||||
|
|
||||||
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
||||||
|
with:
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
|
- name: Quality gate
|
||||||
|
env:
|
||||||
|
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
|
||||||
|
run: cargo xtask ci
|
||||||
@@ -18,16 +18,6 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eval:
|
nix:
|
||||||
runs-on: ubuntu-latest
|
# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.
|
||||||
timeout-minutes: 15
|
uses: storytold/craft-common-actions/.github/workflows/nix.yml@main
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
|
|
||||||
- name: nix flake check --no-build
|
|
||||||
run: |
|
|
||||||
if [ -f flake.nix ]; then
|
|
||||||
nix flake check --no-build --all-systems
|
|
||||||
else
|
|
||||||
echo "No flake.nix present in this repository; skipping check."
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
name: SonarCloud
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: sonarcloud-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sonarcloud:
|
||||||
|
# Tracked at @main so org-wide CI improvements propagate without PR churn.
|
||||||
|
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
|
||||||
|
secrets: inherit
|
||||||
@@ -25,6 +25,9 @@
|
|||||||
<img alt="Runs on macOS, Windows, Linux, BSD and the web" src="https://img.shields.io/badge/runs%20on-macOS%20%C2%B7%20Windows%20%C2%B7%20Linux%20%C2%B7%20BSD%20%C2%B7%20Web-3b5bdb?style=flat-square">
|
<img alt="Runs on macOS, Windows, Linux, BSD and the web" src="https://img.shields.io/badge/runs%20on-macOS%20%C2%B7%20Windows%20%C2%B7%20Linux%20%C2%B7%20BSD%20%C2%B7%20Web-3b5bdb?style=flat-square">
|
||||||
<img alt="License: MIT OR Apache-2.0" src="https://img.shields.io/badge/license-MIT%20%2F%20Apache--2.0-2b47b5?style=flat-square">
|
<img alt="License: MIT OR Apache-2.0" src="https://img.shields.io/badge/license-MIT%20%2F%20Apache--2.0-2b47b5?style=flat-square">
|
||||||
<img alt="Agent-drivable over MCP" src="https://img.shields.io/badge/agents-MCP%20%C2%B7%20CLI-3b5bdb?style=flat-square">
|
<img alt="Agent-drivable over MCP" src="https://img.shields.io/badge/agents-MCP%20%C2%B7%20CLI-3b5bdb?style=flat-square">
|
||||||
|
<br>
|
||||||
|
<a href="https://sonarcloud.io/project/overview?id=storytold_wordcraft"><img alt="Scanned by SonarCloud" src="https://img.shields.io/badge/Scanned_by-SonarCloud-4b9fd5?style=flat-square&logo=sonarqubecloud&logoColor=white"></a>
|
||||||
|
<a href="https://coderabbit.ai"><img alt="Reviewed by CodeRabbit" src="https://img.shields.io/coderabbit/prs/github/storytold/wordcraft?style=flat-square&label=Reviewed%20by%20CodeRabbit&logo=coderabbit"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ if has appimage; then
|
|||||||
if [ -z "$TOOL" ]; then
|
if [ -z "$TOOL" ]; then
|
||||||
TOOL="$CARGO_TARGET_DIR/appimagetool-$ARCH.AppImage"
|
TOOL="$CARGO_TARGET_DIR/appimagetool-$ARCH.AppImage"
|
||||||
if [ ! -x "$TOOL" ]; then
|
if [ ! -x "$TOOL" ]; then
|
||||||
curl -fsSL -o "$TOOL" "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$ARCH.AppImage"
|
curl --proto '=https' -fsSL -o "$TOOL" "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$ARCH.AppImage"
|
||||||
chmod +x "$TOOL"
|
chmod +x "$TOOL"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
sonar.projectKey=storytold_wordcraft
|
||||||
|
sonar.organization=storytold
|
||||||
Reference in New Issue
Block a user