name: 'Install tinyxml2 from source' description: 'Build and install tinyxml2 from source. Used when the distro-shipped tinyxml2 is older than 10.0.0 (no cmake config file).' runs: using: composite steps: - shell: bash run: | if [ "$(id -u)" -ne 0 ]; then SUDO=sudo; else SUDO=""; fi mkdir -p deps if [ ! -d "deps/tinyxml2-10.0.0" ]; then curl -fsSL https://github.com/leethomason/tinyxml2/archive/refs/tags/10.0.0.tar.gz | tar xz -C deps fi cd deps/tinyxml2-10.0.0 mkdir -p build cd build cmake .. make $SUDO make install