varlink_generator: Fix generating code which compiles with Rust 2024 #192
Workflow file for this run
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: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the master branch | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| release: | |
| types: # This configuration does not affect the page_build event above | |
| - created | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [ | |
| ubuntu-latest, | |
| macos-latest, | |
| windows-latest | |
| ] | |
| version: | |
| - 1.70.0 | |
| - stable | |
| - nightly | |
| runs-on: ${{ matrix.platform }} | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Install toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.version }} | |
| components: rustfmt, clippy | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: cargo test --verbose |