Skip to content

Commit

Permalink
prepare for taring
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahmonod committed Oct 13, 2023
1 parent f7637ba commit 1a9cc5e
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: '
sudo apt-get install -qy
pkg-config
' # libcdb2api-dev is installed from source below
- uses: actions/checkout@v4

- name: Checkout comdb2 dependency
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -63,13 +56,20 @@ jobs:
cmake .. &&
make &&
sudo make install
)
'
) &&
tar czvf opt-bb.tar.gz /opt/bb
' # install build time dependencies of comdb2 + comdb2 itself from source
- name: Upload comdb2 build output
uses: actions/upload-artifact@v3
with:
name: comdb2
path: /opt/bb/
path: ./opt-bb.tar.gz
- name: Install python-comdb2 build-time dependencies
run: '
sudo apt-get install -qy
pkg-config
' # build time dependencies of python-comdb2
- uses: actions/checkout@v4
- name: Build sdist
run: PKG_CONFIG_PATH=/opt/bb/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig pipx run build --sdist
- name: Upload sdist
Expand All @@ -95,7 +95,9 @@ jobs:
uses: actions/download-artifact@v3
with:
name: comdb2
path: /opt/bb/
path: .
- name: Extracting comdb2
run: 'tar xvf opt-bb.tar.gz --directory /'
- name: Download sdist
uses: actions/download-artifact@v3
with:
Expand All @@ -108,8 +110,13 @@ jobs:
- name: Install dependencies
run: '
sudo apt-get install -qy
pkg-config
' # libcdb2api-dev is installed from source above
libevent-dev
liblz4-dev
libprotobuf-c-dev
libsqlite3-dev
libssl-dev
zlib1g-dev
' # runtime dependencies of comdb2 (comdb2 itself is extracted from opt-bb.tar.gz)
- name: Start local comdb2 instance
run: '
sudo mkdir -p /opt/bb/share/schemas/$COMDB2_DBNAME &&
Expand Down Expand Up @@ -146,6 +153,7 @@ jobs:
python-version: ${{ matrix.python_version }}
- name: Install python dependencies
run: |
sudo apt-get install -qy pkg-config
python -m pip install --upgrade pip
PKG_CONFIG_PATH=/opt/bb/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig LDFLAGS="-Wl,-rpath,/opt/bb/lib" python -m pip install ./comdb2-sdist[tests]
- name: Run Tests
Expand Down

0 comments on commit 1a9cc5e

Please sign in to comment.