forked from prefix-dev/rattler-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: make sure rpath is inserted (prefix-dev#532)
- Loading branch information
Showing
8 changed files
with
107 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ jobs: | |
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.10.0 | ||
- if: runner.os == 'macOS' | ||
run: pixi global install patchelf | ||
# build in release mode so that it's reasonably fast to run the tests | ||
- run: cargo build --release | ||
- run: cargo test --release -p rust-tests -- --test-threads 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json | ||
|
||
context: | ||
name: mssql-tools | ||
version: '18.2.1.1' | ||
|
||
package: | ||
name: ${{ name }} | ||
version: ${{ version }} | ||
|
||
source: | ||
- url: https://packages.microsoft.com/rhel/7/prod/${{ name }}18-${{ version }}-1.x86_64.rpm | ||
sha256: 98758f29f1b1aad13c5ce32a5cf1e849d35a97054d030ee5dccdab6aefd2aef9 | ||
|
||
build: | ||
number: 0 | ||
script: | ||
- bsdtar xf mssql-tools18-${{ version }}-1.x86_64.rpm | ||
- mkdir -p $PREFIX/bin | ||
- cp opt/mssql-tools18/bin/* $PREFIX/bin | ||
|
||
requirements: | ||
build: | ||
- libarchive | ||
|
||
tests: | ||
- package_contents: | ||
bin: | ||
- sqlcmd | ||
- bcp | ||
- script: | ||
# both binaries come shipped from the source without rpath | ||
# but rattler-build should add $ORIGIN/../lib to rpath | ||
- patchelf --print-rpath $PREFIX/bin/bcp | grep -q \$ORIGIN/../lib | ||
- patchelf --print-rpath $PREFIX/bin/sqlcmd | grep -q \$ORIGIN/../lib | ||
requirements: | ||
build: | ||
- patchelf |