File: rust.yml

package info (click to toggle)
rust-enumflags2 0.7.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: makefile: 4
file content (38 lines) | stat: -rw-r--r-- 943 bytes parent folder | download | duplicates (2)
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
name: Rust

on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        include:
          - rust: nightly
          - rust: stable
            extra-test-opts: -- --skip ui
          - rust: 1.56
            extra-test-opts: -- --skip ui
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: ${{ matrix.rust }}
        profile: minimal
        default: true
    - uses: taiki-e/install-action@cargo-hack
    - run: cargo hack build --feature-powerset
    - run: cargo test --all ${{ matrix.extra-test-opts }}
  clippy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions-rs/toolchain@v1
      with:
        profile: minimal
        toolchain: nightly
        override: true
        components: clippy
    - uses: taiki-e/install-action@cargo-hack
    - run: cargo hack clippy --workspace -- -D warnings