-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (47 loc) · 1.54 KB
/
Copy pathci.yml
File metadata and controls
60 lines (47 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and check
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-pc-windows-msvc
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --target x86_64-pc-windows-msvc --all-targets -- -D warnings
- name: Build
run: cargo build --release --target x86_64-pc-windows-msvc
# Catches an icon or version resource regression on every pull request,
# rather than at release time when it is too late.
- name: Verify binary
shell: pwsh
run: pwsh tools/verify_release.ps1 -Path target/x86_64-pc-windows-msvc/release/Ferrite.exe
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# Guards the invariant the project cares about most: every user facing
# string lives in the locale catalogues, in every language.
- name: Check i18n coverage
run: python tools/check_i18n.py
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: Ferrite
path: target/x86_64-pc-windows-msvc/release/Ferrite.exe
if-no-files-found: error