deps: update rust crate serde-aux to v4 #507
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 | |
| - pull_request | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: full | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| # Always run main branch builds to completion. | |
| fail-fast: ${{ github.event_name == 'pull_request' || | |
| (github.ref != 'refs/heads/main' && | |
| !startsWith(github.ref, 'refs/tags/')) }} | |
| matrix: | |
| os: [macos-latest, windows-latest, ubuntu-latest] | |
| steps: | |
| - name: Configure git | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.symlinks true | |
| git config --global fetch.parallel 32 | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v1 | |
| - name: Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Run tests | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --all --all-features | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| needs: test | |
| concurrency: | |
| group: release | |
| steps: | |
| - name: Configure git | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.symlinks true | |
| git config --global fetch.parallel 32 | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v1 | |
| - name: Install cargo plugins | |
| run: cargo install cargo-workspaces | |
| - name: Publish | |
| run: cargo workspaces publish --from-git --yes --token "${{ secrets.CRATES_IO_TOKEN }}" |