Skip to content

Commit fe57e0d

Browse files
committed
Don't build cargo-license
1 parent 1d8949d commit fe57e0d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ jobs:
106106
with:
107107
enable-cache: true
108108

109+
- name: Install cargo-license
110+
uses: taiki-e/install-action@v2
111+
with:
112+
tool: cargo-license
113+
109114
- name: Generate license file
110115
run: uv run --no-project python ./dev/create_license.py
111116

dev/create_license.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
import subprocess
2323
from pathlib import Path
2424

25-
subprocess.check_output(["cargo", "install", "cargo-license"])
2625
data = subprocess.check_output(
2726
[
28-
"cargo",
29-
"license",
27+
"cargo-license",
3028
"--avoid-build-deps",
3129
"--avoid-dev-deps",
3230
"--do-not-bundle",

0 commit comments

Comments
 (0)