Add folder picker button and GitHub link in header #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |