File: rust.yml

package info (click to toggle)
rust-debian-analyzer 0.160.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 744 kB
  • sloc: python: 60; makefile: 7
file content (50 lines) | stat: -rw-r--r-- 1,280 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
45
46
47
48
49
50
---
name: Rust

"on":
  push:
    branches: ["main"]
  pull_request:
    branches: ["main"]

env:
  CARGO_TERM_COLOR: always
  # Limit parallel jobs to avoid lld crashes due to memory pressure during doctest linking
  CARGO_BUILD_JOBS: 2

jobs:
  build:

    strategy:
      matrix:
        os: [ubuntu-latest]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable
      - run: python -m pip install breezy launchpadlib
      - name: Install OpenSSL on macOS
        if: matrix.os == 'macos-latest'
        run: brew install openssl@3
      - name: Install all-features
        run: cargo install cargo-all-features
      - name: Format check
        run: cargo fmt --all -- --check
      - name: Build
        run: cargo build-all-features -- --all
      - name: Run tests
        run: cargo all-features test --jobs 1

  minimal-versions:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable
      - run: python -m pip install breezy launchpadlib
      - name: Install minimal-versions
        run: cargo install cargo-minimal-versions cargo-hack
      - name: Test with minimal versions
        run: cargo minimal-versions --direct test --jobs 1