Refactor commonalities and general tidy-up
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
name: Check out index repos
|
||||
description: >
|
||||
Check out alire-index with full history (needed by diff detectors
|
||||
and check-author; grafted partial branches cause confusion), and
|
||||
alire-index-checks checked out at the PR base branch.
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Check out alire-index
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check out alire-index-checks
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: alire-project/alire-index-checks
|
||||
ref: ${{ github.base_ref }}
|
||||
path: alire-index-checks
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user