Mercurial > crates > systemd-socket
view .github/workflows/rust.yml @ 31:fbb9e1206e3c
Use explicit Rust version in CI
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Sun, 20 Apr 2025 17:55:34 +0200 |
parents | 27456533853e |
children |
line wrap: on
line source
name: Rust on: push: branches: [ master ] pull_request: branches: [ master ] workflow_dispatch: env: CARGO_TERM_COLOR: always jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v2 - name: Select the minimal lock file run: cp Cargo-minimal.lock Cargo.lock - name: Set Rust version if: matrix.os != 'macOS-latest' run: rustup default 1.48.0 - name: Build run: cargo build --verbose - name: Run tests run: cargo test --all-features --verbose