[fix] action
Some checks failed
Run BaseX Tests / test (push) Successful in 37s
Test BaseX Installation / test-basex (push) Failing after 29s

This commit is contained in:
Andy Bunce 2025-02-12 12:02:04 +00:00
parent 8b96370e90
commit 73bc798dc1
3 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,33 @@
name: 'Install BaseX'
description: 'Install BaseX on a GitHub Actions runner, assumes Java already installed'
inputs:
basex-version:
description: 'The version of BaseX to install (e.g., 11.7)'
required: true
default: '11.7'
runs:
using: 'composite'
steps:
- name: Download BaseX
shell: bash
run: |
BASEX_VERSION="${{ inputs.basex-version }}"
BASEX_CLEAN_VERSION="${BASEX_VERSION//./}"
wget https://files.basex.org/releases/$BASEX_VERSION/BaseX$BASEX_CLEAN_VERSION.zip -O BaseX.zip
- name: Unzip BaseX
shell: "bash"
run: |
unzip BaseX.zip -d $HOME
rm BaseX.zip
- name: Add BaseX to PATH
shell: "bash"
run: |
echo "BASEX_ROOT=$HOME/basex" >> $GITHUB_ENV
echo "PATH=$PATH:$HOME/basex/bin" >> $GITHUB_ENV
- name: Verify BaseX installation
shell: "bash"
run: |
basex -v"

View file