Skip to content

Build action - upload outputs as artifacts #9

Build action - upload outputs as artifacts

Build action - upload outputs as artifacts #9

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build Models
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
includes_only:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- src_name: "GEOMODELS_SRC-GA"
model_name: "NorthQueensland"
- src_name: "GEOMODELS_SRC-GA"
model_name: "Yilgarn"
- src_name: "GEOMODELS_SRC-GA"
model_name: "Tas"
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install COLLADA2GLTF
run: |
mkdir COLLADA2GLTF
pushd COLLADA2GLTF
wget https://github.com/KhronosGroup/COLLADA2GLTF/releases/download/v2.1.5/COLLADA2GLTF-v2.1.5-linux.zip
unzip COLLADA2GLTF-v2.1.5-linux.zip
popd
- name: Install model sources
run: |
mkdir MODEL_SRC
pushd MODEL_SRC
wget https://github.com/AuScope/geomodel-2-3dweb/releases/download/PORTAL_RELEASE_20210718/${{matrix.src_name}}.tar.gz
tar xvfz ${{matrix.src_name}}.tar.gz
popd
- name: Install pdm
run: |
python -m pip install --upgrade pip
pip install pdm
- name: Install dependencies
run: |
pdm install
- name: Build
run: |
export COLLADA2GLTF_BIN=`pwd`/COLLADA2GLTF
echo "COLLADA2GLTF_BIN=$COLLADA2GLTF_BIN"
export GEOMODELS_HOME=`pwd`/MODEL_SRC
echo "GEOMODELS_HOME=$GEOMODELS_HOME"
eval $(pdm venv activate)
cd web_build/
./batch_proc.py --model_name=${{matrix.model_name}}
- name: Upload output
- uses: actions/upload-artifact@v4
with:
name: geomodels-${{matrix.model_name}}
path: geomodels/
if-no-files-found: error