Switch to setup-alire@v1 (#363)

* Switch to setup-alire@v1

* Code review
This commit is contained in:
Alejandro R Mosteo
2021-09-20 15:47:15 +02:00
committed by GitHub
parent aff0a2827d
commit 712789a75c
2 changed files with 16 additions and 19 deletions
+9 -10
View File
@@ -14,15 +14,15 @@ jobs:
strategy:
matrix:
os:
os:
- macos-latest
- ubuntu-latest
- windows-latest
tag:
- arch-rolling
- centos-latest-community-latest
- community-current
- debian-stable
- community-current
- debian-stable
- ubuntu-lts
- ""
exclude: # inclusions don't allow to add arrays of values to a scenario
@@ -73,13 +73,16 @@ jobs:
- name: Set up stable `alr`
if: contains(github.base_ref, 'stable-')
uses: alire-project/setup-alire@latest-stable
uses: alire-project/setup-alire@v1
with:
toolchain: --disable-assistant # We want to use the external ones in this workflow
- name: Set up devel `alr`
if: contains(github.base_ref, 'devel-')
uses: alire-project/setup-alire@latest-devel
uses: alire-project/setup-alire@v1
with:
toolchain: --disable-assistant # We want to use the external ones
toolchain: --disable-assistant # We want to use the external ones in this workflow
branch: master
- name: Test crate (Linux)
if: matrix.os == 'ubuntu-latest' # docker testing only for linuxes
@@ -89,10 +92,6 @@ jobs:
command: scripts/gh-build-crate.sh
params: -v ${{ github.workspace }}/alire_install/bin/alr:/usr/bin/alr
- name: Set up msys2 (Windows)
if: matrix.os == 'windows-latest'
run: ./alire_install/bin/alr --non-interactive version
- name: Install tar from msys2 (Windows) # Git tar in Actions VM does not seem to work)
if: matrix.os == 'windows-latest'
run: C:\Users\runneradmin\.cache\alire\msys64\usr\bin\pacman --noconfirm -S tar
+7 -9
View File
@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os:
os:
- macos-latest
- ubuntu-latest
- windows-latest
@@ -31,8 +31,8 @@ jobs:
# check-author action).
# For the devel branch we need a compiler available to build alr in
# setup-alire. At some point we should integrate this in the
# setup-alire@latest-devel action.
# setup-alire. We will be able to get rid of this once composite actions
# support conditional steps.
- name: Set up GNAT toolchain (FSF)
if: (matrix.os == 'ubuntu-latest') && (contains(github.base_ref, 'devel-'))
@@ -49,16 +49,14 @@ jobs:
# By default, this sets up the newest indexed native toolchain
- name: Set up stable `alr`
if: contains(github.base_ref, 'stable-')
uses: alire-project/setup-alire@latest-stable
uses: alire-project/setup-alire@v1
# By default, this sets up the newest indexed native toolchain
- name: Set up devel `alr`
if: contains(github.base_ref, 'devel-')
uses: alire-project/setup-alire@latest-devel
- name: Set up msys2 (Windows)
if: matrix.os == 'windows-latest'
run: ./alire_install/bin/alr --non-interactive version
uses: alire-project/setup-alire@v1
with:
branch: 'master'
- name: Install tar from msys2 (Windows) # Git tar in Actions VM does not seem to work)
if: matrix.os == 'windows-latest'