Fix main workflow to use proper alr for base branch (#235)

* Use proper alr for the base branch

* Fix: set up compiler before devel alr
This commit is contained in:
Alejandro R Mosteo
2021-01-13 18:09:53 +01:00
committed by GitHub
parent 697f096eb0
commit fec54162ed
+13 -1
View File
@@ -10,7 +10,19 @@ jobs:
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: alire-project/setup-alire@latest-stable
- name: Set up stable `alr`
if: contains(github.base_ref, 'stable-')
uses: alire-project/setup-alire@latest-stable
- name: Set up GNAT for devel `alr`
if: contains(github.base_ref, 'devel-')
uses: ada-actions/toolchain@ce2020
with:
distrib: fsf
- name: Set up devel `alr`
if: contains(github.base_ref, 'devel-')
uses: alire-project/setup-alire@latest-devel
- run: alr index --list