summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/cargo-vendor.yml
blob: 31177c725dfd740a0d5949f1ba220d0e0518e876 (plain)
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
---
# The reason why we check for vendorability is not because we at Mullvad usually vendor
# dependencies ourselves. But it can help some third party packagers of this project.
# It also is a sanity check on our dependency tree. Vendoring will fail if a single
# dependency has multiple sources: https://github.com/mullvad/mullvadvpn-app/issues/4848
name: Rust - Vendor dependencies
on:
  pull_request:
    paths:
      - .github/workflows/cargo-vendor.yml
      - Cargo.lock
      - '**/Cargo.toml'
  workflow_dispatch:

permissions: {}

jobs:
  cargo-vendor:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          submodules: true

      - name: Vendor Rust dependencies
        run: cargo vendor