2024-06-12 05:13:07 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: debian-12
|
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: |
|
2024-06-13 20:27:57 +00:00
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.79.0
|
2024-06-12 05:15:23 +00:00
|
|
|
source "$HOME/.cargo/env"
|
|
|
|
echo "$PATH" >> "$GITHUB_PATH"
|
2024-06-12 05:20:22 +00:00
|
|
|
- uses: https://github.com/Swatinem/rust-cache@v2
|
2024-06-12 05:13:07 +00:00
|
|
|
with:
|
|
|
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
2024-06-13 20:27:57 +00:00
|
|
|
- run: cargo test
|
2024-07-18 07:13:28 +00:00
|
|
|
- run: cargo doc --features=unstable-doc
|