tc-rust.mk: Fix Rust target detection by moving checks to runtime (#6… #859
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: Lint | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "**.md" | |
| push: | |
| paths-ignore: | |
| - "**.md" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Lint | |
| run: | | |
| npm install jsonlint | |
| find spk/ \ | |
| -not -path "*work*" \ | |
| -not -path "spk/transmission/src/settings.json" \ | |
| -not -path "*/wizard_templates/install_uifile" \ | |
| -not -path "*/wizard_templates/upgrade_uifile" \ | |
| -regextype posix-extended \ | |
| -regex '.*(\.json|install_uifile\w*|upgrade_uifile\w*|app/config)' \ | |
| | xargs -i node_modules/jsonlint/lib/cli.js -q -c {}; |