Replace CE with latest FSF from Alire (#746)

* Replace CE with latest FSF from Alire

Also remove extra installations that are now automatically performed by the
setup-alire action.

* Remove now-redundant workflow cases
This commit is contained in:
Alejandro R Mosteo
2023-02-22 11:48:13 +01:00
committed by GitHub
parent cc6b374bc9
commit cf27f32b50
4 changed files with 19 additions and 101 deletions
+4 -20
View File
@@ -1,7 +1,7 @@
# Please read the TESTING file before modifying this file
name: Toolchain
# Build the submitted crate with a native toolchain from Alire
name: Build Crate (Alire toolchain)
# Build the crate with a native toolchain from Alire
env:
CHECKS_ORG: alire-project
@@ -44,33 +44,17 @@ jobs:
ref: ${{github.base_ref}}
path: ${{env.CHECKS_REPO}}
# For the devel branch we need a compiler available to build alr in
# 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-'))
uses: ada-actions/toolchain@ce2020
with:
distrib: fsf # faster install?
- name: Set up GNAT toolchain (Community)
if: (matrix.os != 'ubuntu-latest') && (contains(github.base_ref, 'devel-'))
uses: ada-actions/toolchain@ce2020
with:
distrib: community
# 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@v1
uses: alire-project/setup-alire@v2
with:
version: ${{env.ALR_VERSION}}
# 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@v1
uses: alire-project/setup-alire@v2
with:
branch: 'master'