Skip to content

Commit

Permalink
Fix backend build in build-models.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf authored Sep 2, 2024
1 parent 57e03d3 commit 480c99f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build-models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,23 @@ jobs:
pip install pdm
- name: Install dependencies
run: |
pdm install
# Remove old venv
pdm venv remove -y for-backend-build 2>/dev/null || pdm venv list
# Create new venv
pdm venv create --with-pip --name for-backend-build 3.10
eval $(pdm venv activate for-backend-build)
pdm install --venv for-backend-build
- name: Make boreholes
run: |
eval $(pdm venv activate for-backend-build)
# Temporarily, a patched version of assimp lives in the 'test' dir
# It was installed and built via 'pdm install'
ASSIMP_VER=5.2.5
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/test/assimp-$ASSIMP_VER/bin
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
pushd web_build
./make_boreholes.py -b batch.txt -d query_data.db boreholes
tar cvfz boreholes.tag.gz ./boreholes
rm -rf boreholes
tar cvfz boreholes.tar.gz ./boreholes
popd
- name: Upload borehole data
uses: actions/upload-artifact@v4
Expand All @@ -179,14 +184,12 @@ jobs:
if-no-files-found: error
- name: Make API directory
run: |
pushd scripts
./build_api_dir.sh ../web_build/query_data.db
pushd web_build
./build_api_dir.sh boreholes/query_data.db
popd
- name: Upload API directory
uses: actions/upload-artifact@v4
with:
name: api.tar
path: scripts/api.tar
name: api.tar.gz
path: web_build/api.tar.gz
if-no-files-found: error


0 comments on commit 480c99f

Please sign in to comment.