blob: 0363143f33c03587c43289a475dae9e24adf378b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|