Skip to content

Commit 1cda495

Browse files
cargo-dist troubleshoot (#15)
* cargo-dist troubleshoot * ci --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent dcf03fe commit 1cda495

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on:
4242
pull_request:
4343
push:
4444
tags:
45-
- "**[0-9]+.[0-9]+.[0-9]+*"
45+
- '**[0-9]+.[0-9]+.[0-9]+*'
4646

4747
jobs:
4848
# Run 'cargo dist plan' (or host) to determine what tasks we need to do
@@ -126,12 +126,9 @@ jobs:
126126
pattern: artifacts-*
127127
path: target/distrib/
128128
merge-multiple: true
129-
- name: Install libudev (linux)
129+
- name: Install dependencies
130130
run: |
131-
sudo apt update
132-
sudo apt install -y libudev-dev
133-
# Only install on Ubuntu
134-
if: (matrix.runner == 'ubuntu-latest') || (matrix.runner == 'ubuntu-20.04')
131+
${{ matrix.packages_install }}
135132
- name: Build artifacts
136133
run: |
137134
# Actually do builds and make zips and whatnot

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-
3838
install-path = "CARGO_HOME"
3939
# Whether to install an updater program
4040
install-updater = false
41-
# Ignore out-of-date contents
42-
allow-dirty = ["ci"]
41+
42+
[workspace.metadata.dist.dependencies.apt]
43+
libudev-dev = '*'

0 commit comments

Comments
 (0)