chore: update rust crate syn to v2.0.117 #902
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-15 | |
| # - windows-2025 | |
| - ubuntu-24.04 | |
| - ubuntu-24.04-arm | |
| channel: | |
| - stable | |
| # - beta | |
| - nightly | |
| env: | |
| TERM: xterm-256color | |
| 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@master | |
| with: | |
| toolchain: ${{ matrix.channel }} | |
| components: clippy | |
| - name: Run sccache-cache | |
| if: github.repository == 'YoloDev/hass-rs' | |
| uses: mozilla-actions/[email protected] | |
| - name: Configure sccache | |
| if: github.repository == 'YoloDev/hass-rs' | |
| run: | | |
| echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | |
| echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV | |
| echo "SCCACHE_BUCKET=${{ vars.SCCACHE_BUCKET }}" >> $GITHUB_ENV | |
| echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION }}" >> $GITHUB_ENV | |
| echo "SCCACHE_ENDPOINT=${{ secrets.SCCACHE_ENDPOINT }}" >> $GITHUB_ENV | |
| echo "AWS_ACCESS_KEY_ID=${{ secrets.SCCACHE_ACCESS_KEY_ID }}" >> $GITHUB_ENV | |
| echo "AWS_SECRET_ACCESS_KEY=${{ secrets.SCCACHE_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV | |
| - name: Clippy (ignore warnings) | |
| run: cargo clippy --all-features | |
| - name: Clippy (deny warnings) | |
| run: cargo clippy --all-features -- -D warnings | |
| - name: Install cargo-featurex | |
| run: cargo install cargo-featurex | |
| - name: Run check (all feature permutations) | |
| run: cargo featurex clippy | |
| - name: Run tests (all feature permutations) | |
| run: cargo featurex test | |
| # - name: Run sccache stat for check | |
| # shell: bash | |
| # run: ${SCCACHE_PATH} --show-stats |