Files
moonwell-client-core/.github/workflows/ci.yml
T
sindoring 768c647b46 Sync upstream through 591358af
Import 48 upstream commits since 9a5f2a56 and retain the ruRU localization: Cyrillic names
keep the twelve-letter cap in upstream's reworked name check, the roster keeps its Unicode
name match beside upstream's new tests, and the spell cost cells take upstream's keyed
GlobalStrings templates, which supersede ours. The workspace stays at 0.3.0 (upstream went
back to 0.2.0 until its 0.3.0 ships); cos stays a per-platform VM parity case. Workspace
tests pass on Windows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 17:16:49 +04:00

92 lines
3.7 KiB
YAML

# The gates of scripts/gates.sh that need neither a WoW install nor a display, on Linux, and the
# workspace tests on Windows, for a pull request from a fork or a dispatch: a red one is seen
# before anyone builds it. The data-gated tests, the engine boot checks and a live run happen on
# the maintainer's machine before it lands.
name: CI
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
gates:
# A branch of this repository runs the full chain before it lands; a fork's pull request runs here.
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
timeout-minutes: 150
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
# No debuginfo: it is most of target/, and a runner's disk is small.
CARGO_PROFILE_DEV_DEBUG: 0
# Set and empty: no install, as the gates' test-no-install runs.
WOW_DATA: ""
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Free disk space
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
- name: System libraries
run: sudo apt-get update -qq && sudo apt-get install -y -qq pkg-config libasound2-dev libudev-dev
- name: Toolchain
run: rustup toolchain install && rustc -V
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: test
run: cargo test --workspace
- name: doc-links
run: scripts/doc-links.py
- name: message-catalog
run: scripts/gen-message-catalog.py --check
# reference/ is benilla-re's tables at reference/PIN, byte for byte.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: samwhosung/benilla-re
path: benilla-re
fetch-depth: 0
- name: reference
run: scripts/sync-reference.py benilla-re --check
- name: pass-span-lint
run: scripts/pass-span-lint.py
- name: player-clippy
run: cargo clippy -p benilla -p benilla-app --no-default-features -- -D warnings
- name: player-tests
run: cargo test -p benilla-formats -p benilla-app --no-default-features --lib
windows:
# The workspace tests on a Windows checkout, which no macOS or Linux gate runs: path separators,
# line endings and platform seams fail here first.
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: windows-latest
timeout-minutes: 180
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
WOW_DATA: ""
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Toolchain
run: rustup toolchain install && rustc -V
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
# Every crate runs, so one binary's crash does not hide the rest of the workspace.
- name: test
run: cargo test --workspace --no-fail-fast
# A binary that dies whole names no test; on one thread each test's name prints before it runs.
- name: name the test a crash took down
if: failure()
run: cargo test --workspace --no-fail-fast -- --test-threads=1