Skip to content

Commit 36c27b7

Browse files
authored
Merge pull request #2542 from xhochy/fix-rust-example
Fix Rust example recipe
2 parents e411d99 + 6ab5578 commit 36c27b7

File tree

1 file changed

+7
-10
lines changed
  • docs/maintainer/example_recipes

1 file changed

+7
-10
lines changed

docs/maintainer/example_recipes/rust.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ source:
1818
sha256: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
1919

2020
build:
21-
env:
22-
CARGO_PROFILE_RELEASE_STRIP: symbols
23-
CARGO_PROFILE_RELEASE_LTO: fat
24-
script:
25-
- if: unix
26-
then:
27-
- cargo auditable install --locked --no-track --bins --root "$PREFIX" --path .
28-
else:
29-
- cargo auditable install --locked --no-track --bins --root %PREFIX% --path .
30-
- cargo-bundle-licenses --format yaml --output ./THIRDPARTY.yml
3121
number: 0
22+
script:
23+
env:
24+
CARGO_PROFILE_RELEASE_STRIP: symbols
25+
CARGO_PROFILE_RELEASE_LTO: fat
26+
content:
27+
- cargo auditable install --locked --no-track --bins --root ${{ PREFIX }} --path .
28+
- cargo-bundle-licenses --format yaml --output ./THIRDPARTY.yml
3229

3330
requirements:
3431
build:

0 commit comments

Comments
 (0)