Skip to content

Commit

Permalink
Update workflow to recent practices
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Jun 20, 2024
1 parent 021a276 commit cb4e29e
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ on:
jobs:

build:
name: ${{ matrix.os }}
name: ${{ matrix.os }} / GNAT ${{ matrix.gnat }}

runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- macos-latest
- macos-12
- ubuntu-latest
- windows-latest

gnat: [10, 11, 12, 13, 14]

steps:
- name: Check out repository
uses: actions/checkout@v1
Expand All @@ -29,22 +30,9 @@ jobs:
run: git submodule update --init --recursive

- name: Set up GNAT toolchain (FSF)
if: matrix.os == 'ubuntu-latest'
uses: ada-actions/toolchain@ce2021
with:
distrib: fsf

- name: Set up GNAT toolchain (Community 2021)
if: matrix.os == 'windows-latest'
uses: ada-actions/toolchain@ce2021
with:
distrib: community

- name: Set up GNAT toolchain (Community 2020)
if: matrix.os == 'macos-latest'
uses: ada-actions/toolchain@ce2020
uses: alire-project/alr-install@v1
with:
distrib: community
crates: gnat_native^${{matrix.gnat}} gprbuild

- name: Build on demand
run: gprbuild -j0 -p -XSEMVER_BUILD_MODE=On_Demand
Expand Down

0 comments on commit cb4e29e

Please sign in to comment.