Allow flexible Lua library selection #323
Workflow file for this run
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] | |
| paths-ignore: | |
| - .github/** | |
| - docs/** | |
| - CONTRIBUTING.md | |
| - CODE_OF_CONDUCT.md | |
| - README.md | |
| - mkdocs.yml | |
| - examples/** | |
| - .vscode/** | |
| - scripts/** | |
| pull_request: | |
| paths-ignore: | |
| - .github/** | |
| - docs/** | |
| - CONTRIBUTING.md | |
| - CODE_OF_CONDUCT.md | |
| - README.md | |
| - mkdocs.yml | |
| - examples/** | |
| - .vscode/** | |
| - scripts/** | |
| workflow_dispatch: | |
| jobs: | |
| run_unit_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # - name: Cache cargo | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: | | |
| # ~/.cargo/registry | |
| # ~/.cargo/git | |
| # target | |
| # key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| # - name: Cargo clean if target too large | |
| # run: make clean | |
| - name: Cache uv | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/uv | |
| key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }} | |
| # - name: Cache cargo binaries | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: ~/.cargo/bin | |
| # key: ${{ runner.os }}-cargo-bins | |
| - name: Project setup | |
| uses: ./.github/actions/project-setup | |
| - name: Install test dependencies | |
| run: make setup | |
| - name: Install llvm-tools-preview | |
| run: rustup component add llvm-tools-preview | |
| - name: Install cargo-llvm-cov | |
| run: cargo binstall cargo-llvm-cov --force --no-confirm | |
| - name: Generate coverage | |
| run: make coverage | |
| - name: Upload to codecov | |
| uses: codecov/codecov-action@v2 | |
| with: | |
| fail_ci_if_error: true | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # - name: Cache cargo | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: | | |
| # ~/.cargo/registry | |
| # ~/.cargo/git | |
| # target | |
| # key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| # - name: Cargo clean if target too large | |
| # run: make clean | |
| - name: Cache uv | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/uv | |
| key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }} | |
| # - name: Cache cargo binaries | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: ~/.cargo/bin | |
| # key: ${{ runner.os }}-cargo-bins | |
| - name: Project setup | |
| uses: ./.github/actions/project-setup | |
| with: | |
| toolchain: nightly | |
| - name: Install test dependencies | |
| run: make setup | |
| - run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu clippy | |
| - name: Run Clippy | |
| run: make lint |