view .github/workflows/rust.yml @ 32:ff3bd73afdd4 default tip

Set socket to nonblocking before passing it to tokio.
author Paul Fisher <paul@pfish.zone>
date Sat, 19 Apr 2025 01:41:25 -0400
parents fbb9e1206e3c
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