Refactor commonalities and general tidy-up

This commit is contained in:
Alejandro R. Mosteo
2026-05-22 17:47:42 +02:00
parent 23a2d783a2
commit 2e187a6e2c
12 changed files with 174 additions and 187 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Set up alr
description: >
Install alr, stable or devel, based on the PR target branch.
The stable version is provided here as the single authoritative source.
inputs:
version:
description: Stable alr version to install; update here to bump.
required: false
default: '2.1.0'
toolchain:
description: >
Passed verbatim to setup-alire's toolchain input
(e.g. --disable-assistant). Omit to use the action default.
required: false
default: ''
runs:
using: composite
steps:
- name: Set up stable `alr`
if: contains(github.base_ref, 'stable-') && inputs.toolchain == ''
uses: alire-project/setup-alire@v5
with:
version: ${{ inputs.version }}
- name: Set up stable `alr` (custom toolchain)
if: contains(github.base_ref, 'stable-') && inputs.toolchain != ''
uses: alire-project/setup-alire@v5
with:
version: ${{ inputs.version }}
toolchain: ${{ inputs.toolchain }}
- name: Set up devel `alr`
if: contains(github.base_ref, 'devel-') && inputs.toolchain == ''
uses: alire-project/setup-alire@v5
with:
branch: master
- name: Set up devel `alr` (custom toolchain)
if: contains(github.base_ref, 'devel-') && inputs.toolchain != ''
uses: alire-project/setup-alire@v5
with:
branch: master
toolchain: ${{ inputs.toolchain }}