Update dependabot.yml #352
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: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust-build: | |
| name: Rust | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run cargo build | |
| run: cargo build | |
| - name: Run cargo check (binding crates) | |
| run: cargo check -p rustoku-py -p rustoku-wasm | |
| - name: Run cargo test | |
| run: cargo test | |
| - name: Run cargo clippy | |
| run: cargo clippy --no-deps | |
| - name: Run cargo clippy (binding crates) | |
| run: cargo clippy --no-deps -p rustoku-py -p rustoku-wasm | |
| - name: Run cargo doc | |
| run: cargo doc --no-deps | |
| python-build: | |
| name: Python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Install maturin | |
| run: pip install maturin | |
| - name: Build Python extension | |
| run: maturin build --release | |
| working-directory: rustoku-py | |
| wasm-build: | |
| name: WASM | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Build WASM module | |
| run: wasm-pack build --release --target web | |
| working-directory: rustoku-wasm |