2021-07-01 17:32:14 -04:00
|
|
|
name: codegen
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'Cargo.lock'
|
|
|
|
- '**/codegen/**'
|
|
|
|
- '**/verify/**'
|
|
|
|
- '**/*codegen.rs'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'Cargo.lock'
|
|
|
|
- '**/codegen/**'
|
|
|
|
- '**/verify/**'
|
|
|
|
- '**/*codegen.rs'
|
|
|
|
schedule:
|
|
|
|
- cron: '9 9 9 * *'
|
|
|
|
jobs:
|
|
|
|
codegen:
|
|
|
|
name: Verify Code-gen
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-11-08 12:36:05 -05:00
|
|
|
toolchain: 1.54.0 # MSRV
|
2021-07-01 17:32:14 -04:00
|
|
|
profile: minimal
|
|
|
|
override: true
|
2021-07-02 11:28:31 -04:00
|
|
|
components: rustfmt
|
2021-07-01 17:32:14 -04:00
|
|
|
- uses: Swatinem/rust-cache@v1
|
|
|
|
- name: Verify typos-dict
|
|
|
|
run: |
|
|
|
|
cargo run --package typos-dict-codegen -- --output crates/typos-dict/src/dict_codegen.rs --check
|
|
|
|
- name: Verify typos-vars
|
|
|
|
run: |
|
|
|
|
cargo run --package typos-vars-codegen -- --output crates/typos-vars/src/vars_codegen.rs --check
|
|
|
|
- name: Verify typos-dict-verify
|
|
|
|
run: |
|
|
|
|
cargo run --package typos-dict-verify -- --input crates/typos-dict/assets/words.csv --output crates/typos-dict/assets/words.csv --check
|
|
|
|
- name: Verify codespell-dict
|
|
|
|
run: |
|
|
|
|
cargo run --package codespell-codegen -- --output crates/codespell-dict/src/dict_codegen.rs --check
|
|
|
|
- name: Verify misspell-dict
|
|
|
|
run: |
|
|
|
|
cargo run --package misspell-codegen -- --output crates/misspell-dict/src/dict_codegen.rs --check
|
|
|
|
- name: Verify wikipedia-dict
|
|
|
|
run: |
|
|
|
|
cargo run --package wikipedia-codegen -- --output crates/wikipedia-dict/src/dict_codegen.rs --check
|
|
|
|
- name: Verify varcon-dict
|
|
|
|
run: |
|
|
|
|
cargo run --package varcon-codegen -- --output crates/varcon/src/codegen.rs --check
|