File: rust.yaml

package info (click to toggle)
rust-ognibuild 0.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,676 kB
  • sloc: makefile: 17
file content (79 lines) | stat: -rw-r--r-- 2,601 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
name: Rust

on:
  push:
  pull_request:

env:
  CARGO_TERM_COLOR: always

jobs:
  rust:

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

    steps:
      - uses: actions/checkout@v6
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v6
        with:
          python-version: "3.x"
      - name: Update apt cache
        if: matrix.os == 'ubuntu-latest'
        run: sudo apt-get update
      - name: Install Debian tools on Ubuntu
        if: matrix.os == 'ubuntu-latest'
        run: sudo apt-get install -y mmdebstrap
      - name: Install system breezy and libapt-pkg-dev
        if: matrix.os == 'ubuntu-latest'
        run: sudo apt-get install -y brz libapt-pkg-dev libpcre3-dev
      - name: Install breezy
        run: pip install breezy
      - name: Install breezy and brz-debian
        run: pip install \
            git+https://github.com/breezy-team/breezy-debian \
            python_apt@git+https://salsa.debian.org/apt-team/python-apt
        if: matrix.os == 'ubuntu-latest'
      - name: Build
        run: cargo build --verbose
      - name: Run tests
        # Exclude debian features:
        run: cargo test --verbose --no-default-features --features=breezy,dep-server,upstream
        if: matrix.os != 'ubuntu-latest'
      - name: Run tests
        run: cargo test --verbose
        if: matrix.os == 'ubuntu-latest'
      - name: Run tests (with Debian feature)
        run: cargo test --verbose --features=debian
        if: matrix.os == 'ubuntu-latest'

  minimal-versions:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v6
      - name: Set up Python
        uses: actions/setup-python@v6
        with:
          python-version: "3.x"
      - name: Update apt cache
        run: sudo apt-get update
      - name: Install Debian tools
        run: sudo apt-get install -y mmdebstrap
      - name: Install system dependencies
        run: sudo apt-get install -y brz libapt-pkg-dev libpcre3-dev
      - name: Install breezy and brz-debian
        run: pip install breezy \
            git+https://github.com/breezy-team/breezy-debian \
            python_apt@git+https://salsa.debian.org/apt-team/python-apt
      - name: Install cargo-minimal-versions
        run: cargo install cargo-minimal-versions cargo-hack
      - name: Check with minimal versions
        run: cargo minimal-versions --direct check --all-features
      - name: Test with minimal versions
        run: cargo minimal-versions --direct test --all-features