Skip to content

Commit 8c6ed5d

Browse files
Install via auditable & add cargo-env-vars
1 parent dc3e657 commit 8c6ed5d

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

recipes/codebook-lsp/recipe.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,25 @@ source:
1212
build:
1313
number: 0
1414
script:
15-
- if: unix
16-
then: |
17-
export CFLAGS="-D_BSD_SOURCE"
18-
cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml
19-
cargo install --locked --path ./crates/codebook-lsp --root ${PREFIX}
20-
else: |
21-
cargo-bundle-licenses --format yaml --output %SRC_DIR%\THIRDPARTY.yml
22-
cargo install --locked --path .\crates\codebook-lsp --root %PREFIX%
15+
env:
16+
CARGO_PROFILE_RELEASE_STRIP: symbols
17+
CARGO_PROFILE_RELEASE_LTO: fat
18+
content:
19+
- if: unix
20+
then: |
21+
export CFLAGS="-D_BSD_SOURCE"
22+
cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml
23+
else: |
24+
cargo-bundle-licenses --format yaml --output %SRC_DIR%\THIRDPARTY.yml
25+
- cargo auditable install --locked --no-track --bins --root ${{ PREFIX }} --path .
2326

2427
requirements:
2528
build:
2629
- ${{ compiler('rust') }}
2730
- ${{ stdlib('c') }}
2831
- ${{ compiler('cxx') }}
2932
- cargo-bundle-licenses
33+
- cargo-auditable
3034

3135
tests:
3236
- script:

0 commit comments

Comments
 (0)