chore: add CHANGELOG.md to document project updates and version his…
#2
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: Test Linux | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test-linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: [stable, beta, nightly] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: Cache cargo dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-${{ matrix.rust }}- | |
| ${{ runner.os }}-cargo- | |
| - name: Build | |
| run: | | |
| if [ "${{ matrix.rust }}" = "nightly" ]; then | |
| cargo build --verbose --features unstable | |
| else | |
| cargo build --verbose --no-default-features | |
| fi | |
| - name: Run tests | |
| run: | | |
| if [ "${{ matrix.rust }}" = "nightly" ]; then | |
| cargo test --verbose --features unstable | |
| else | |
| cargo test --verbose --no-default-features | |
| fi | |
| - name: Run doc tests | |
| run: | | |
| if [ "${{ matrix.rust }}" = "nightly" ]; then | |
| cargo test --doc --verbose --features unstable | |
| else | |
| cargo test --doc --verbose --no-default-features | |
| fi | |
| - name: Check documentation | |
| run: | | |
| if [ "${{ matrix.rust }}" = "nightly" ]; then | |
| cargo doc --no-deps --features unstable | |
| else | |
| cargo doc --no-deps --no-default-features | |
| fi | |
| env: | |
| RUSTDOCFLAGS: -D warnings |