From 0839ca6a1c87e84af0737d3245a69e3dcc6ba9ac Mon Sep 17 00:00:00 2001 From: William Barnhart Date: Tue, 2 Aug 2022 16:41:56 -0400 Subject: [PATCH 1/2] Add python 3.10 to build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fbee1a..ae9c6fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - py_ver: ['3.7', '3.8', '3.9'] + py_ver: ['3.7', '3.8', '3.9', '3.10'] rocksdb_ver: ['v6.29.3', 'v6.25.3', 'v6.11.4'] steps: From 3684cdd3815fd21f7a6f3b3958ff1d2e3dbb0de0 Mon Sep 17 00:00:00 2001 From: William Barnhart Date: Tue, 2 Aug 2022 19:21:54 -0400 Subject: [PATCH 2/2] Fix dist.yaml builds --- .github/workflows/dist.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index d7df1fe..3354a50 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -54,8 +54,7 @@ jobs: yum install -y bzip2-devel lz4-devel snappy-devel zlib-devel python3-Cython && ( test -d ${{ env.LIBROCKSDB_PATH }} || ( - git clone https://github.com/facebook/rocksdb --depth 1 - --branch ${{ matrix.rocksdb_ver }} ${{ env.LIBROCKSDB_PATH }} && + git clone https://github.com/facebook/rocksdb --depth 1 --branch ${{ matrix.rocksdb_ver }} ${{ env.LIBROCKSDB_PATH }} && cd ${{ env.LIBROCKSDB_PATH }} && CXXFLAGS='-flto -Os -s' PORTABLE=1 make shared_lib -j 4 )) && @@ -76,13 +75,14 @@ jobs: - uses: actions/checkout@v2 name: 'Checkout source repository' - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 name: 'Set up Python 3.9' with: python-version: '3.9' - name: 'Build sdist' - run: | + run: > + pip3 install pkgconfig cython --upgrade && python3 setup.py sdist - uses: actions/upload-artifact@v2