File: rust.yml

package info (click to toggle)
rust-debbugs 0.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: makefile: 4
file content (44 lines) | stat: -rw-r--r-- 936 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Rust

on:
  push:
  pull_request:

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
      fail-fast: false

    steps:
    - uses: actions/checkout@v6
    - name: Build
      run: cargo build --verbose
      env:
        RUSTFLAGS: -Dwarnings
    - name: Run tests
      run: cargo test --verbose
      env:
        RUSTFLAGS: -Dwarnings

  minimal-versions:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v6
    - name: Install stable Rust
      uses: actions-rust-lang/setup-rust-toolchain@v1
      with:
        toolchain: stable
    - name: Install cargo-minimal-versions and cargo-hack
      run: cargo install cargo-minimal-versions cargo-hack
    - name: Run tests with minimal versions
      run: cargo minimal-versions --direct test --verbose
      env:
        RUSTFLAGS: -Dwarnings