Skip to content

Commit

Permalink
Add simple script to prepare custom recipes. (eBay#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd authored Aug 26, 2023
1 parent e36eb79 commit 9d73227
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,10 @@ jobs:
platform: ${{ inputs.platform }}
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Export Recipes
- name: Prepare Recipes
run: |
sudo apt-get install -y python3-pyelftools libaio-dev
python -m pip install pyelftools
./prepare.sh
conan export import/sisl oss/master
conan export 3rd_party/dpdk
conan export 3rd_party/fio
conan export 3rd_party/grpc_internal
conan export 3rd_party/spdk
cached_pkgs=$(ls -1d ~/.conan/data/*/*/*/*/package | sed 's,.*data/,,' | cut -d'/' -f1,2 | paste -sd',' - -)
echo "::info:: Pre-cached: ${cached_pkgs}"
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,6 @@ Event Fd, Generic linux file descriptors, Spdk bdevs (aio, nvme), NVMeOF (Qpairs
## Build
To build (assuming a recent version of conan package manager is installed)
```
$ ./prepare.sh # this will export some recipes to the conan cache
$ conan create . <user>/<channel>
```
17 changes: 17 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
set -eu

echo -n "Installing ELF tools..."
sudo apt-get install -y python3-pyelftools libaio-dev > /dev/null
pipx install pyelftools > /dev/null
echo "done."
echo -n "Exporting custom recipes..."
echo -n "dpdk."
conan export 3rd_party/dpdk
echo -n "fio."
conan export 3rd_party/fio
echo -n "gprc_internal."
conan export 3rd_party/grpc_internal
echo -n "spdk."
conan export 3rd_party/spdk

echo "done."

0 comments on commit 9d73227

Please sign in to comment.