Skip to content

Commit ce7fe6e

Browse files
committed
wip debugging mongodb build
1 parent f02c6be commit ce7fe6e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/upload-binaries.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ jobs:
6565
echo "DB_MAJOR_VERSION=source" >> $GITHUB_ENV
6666
echo "ARCH_CLEAN=$(echo '${{ matrix.arch }}' | sed 's/^_//')" >> $GITHUB_ENV
6767
68+
- name: Install Python 3.11 for MongoDB build
69+
if: matrix.database == 'mongodb'
70+
uses: actions/setup-python@v5
71+
with:
72+
python-version: 3.11
73+
6874
- name: Install build dependencies (Linux)
6975
if: runner.os == 'Linux'
7076
run: |
@@ -86,11 +92,9 @@ jobs:
8692
mongodb)
8793
git clone --branch r7.0.11 https://github.com/mongodb/mongo.git
8894
cd mongo
89-
9095
python3 -m venv venv
9196
source venv/bin/activate
9297
pip install -r buildscripts/requirements.txt
93-
9498
python3 buildscripts/scons.py install-mongod --prefix=/tmp/mongodb_install
9599
cp /tmp/mongodb_install/bin/mongod $GITHUB_WORKSPACE/raw/${{ matrix.database }}/source/${{ matrix.platform }}/${{ matrix.arch }}/
96100
@@ -105,14 +109,14 @@ jobs:
105109
./configure --prefix=/tmp/pgsql
106110
make -j$(nproc)
107111
make install
108-
cp /tmp/pgsql/bin/* ./raw/${{ matrix.database }}/source/${{ matrix.platform }}/${{ matrix.arch }}/
112+
cp /tmp/pgsql/bin/* $GITHUB_WORKSPACE/raw/${{ matrix.database }}/source/${{ matrix.platform }}/${{ matrix.arch }}/
109113
;;
110114
redis)
111115
curl -LO http://download.redis.io/releases/redis-7.2.4.tar.gz
112116
tar -xzf redis-7.2.4.tar.gz
113117
cd redis-7.2.4
114118
make -j$(nproc)
115-
cp src/redis-server ./raw/${{ matrix.database }}/source/${{ matrix.platform }}/${{ matrix.arch }}/
119+
cp src/redis-server $GITHUB_WORKSPACE/raw/${{ matrix.database }}/source/${{ matrix.platform }}/${{ matrix.arch }}/
116120
;;
117121
esac
118122

0 commit comments

Comments
 (0)