Update: handler: can take any single path param in no tuple & Update docs #30
Workflow file for this run
This file contains 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: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: ['stable', 'nightly'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
profile: minimal | |
override: true | |
- name: Cache cargo tools | |
id: cache_cargo_tools | |
uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-cargo-install--sqlx-sccache | |
path: ~/.cargo/bin | |
- name: Install cargo tools | |
if: ${{ steps.cache_cargo_tools.outputs.cache-hit != 'true' }} | |
run: | | |
cargo install sqlx-cli --no-default-features --features native-tls,postgres | |
cargo install sccache --locked | |
- name: Setup fast build environment | |
run: | | |
apt install mold clang | |
echo '[build]' >> ~/.cargo/config.toml | |
echo 'rustc-wrapper = "/home/kanarus/.cargo/bin/sccache"' >> ~/.cargo/config.toml | |
echo '[target.x86_64-unknown-linux-gnu]' >> ~/.cargo/config.toml | |
echo 'linker = "clang"' >> ~/.cargo/config.toml | |
echo 'rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]' >> ~/.cargo/config.toml | |
- name: Run tasks | |
run: | | |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin | |
task test check ${{ matrix.toolchain == 'nightly' && 'bench' || '' }} |