[add] matrix
This commit is contained in:
parent
68a6b99b85
commit
923336f037
4 changed files with 9 additions and 39 deletions
|
@ -1,36 +0,0 @@
|
||||||
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
|
|
||||||
echo "rm"
|
|
||||||
rm BaseX.zip
|
|
||||||
echo "done"
|
|
||||||
|
|
||||||
- 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 "declare option output:indent 'yes';db:system()"
|
|
||||||
|
|
|
@ -8,9 +8,15 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- ".gitea/workflows/trigger/release"
|
- ".gitea/workflows/trigger/release"
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
basex-version: ["10.7", "11.7"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Java
|
- name: Set up Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
|
@ -26,7 +32,7 @@ jobs:
|
||||||
- name: Install BaseX
|
- name: Install BaseX
|
||||||
uses: ./.github/actions/install-basex
|
uses: ./.github/actions/install-basex
|
||||||
with:
|
with:
|
||||||
basex-version: '11.7' # Specify the BaseX version here
|
basex-version: ${{ matrix.basex-version }} # Specify the BaseX version here
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -5,4 +5,4 @@ Xyxh
|
||||||
4456
|
4456
|
||||||
9.7.4 xyxz01x
|
9.7.4 xyxz01x
|
||||||
ab
|
ab
|
||||||
iiiisAas
|
iiiisAasx
|
Loading…
Add table
Reference in a new issue