Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-building action variant #21

Merged
merged 3 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

GitHub action to setup Alire, the Ada/SPARK package manager, from the
development branch. This action also takes care of setting up a compiler to
carry out the build.
carry out the build of Alire. However, after the action completes, Alire will
be configured to rely on the compiler configured via `alr toolchain`.

## Usage

Expand Down
26 changes: 21 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
toolchain:
description: Arguments to pass to `alr toolchain` after setup
required: false
default: 'gnat_native gprbuild<2000'
default: 'gnat_native gprbuild'
toolchain_dir:
description: Location to install the toolchain under
required: false
Expand All @@ -15,11 +15,27 @@ inputs:
runs:
using: 'composite'
steps:
- name: Set up GNAT
uses: ada-actions/toolchain@ce2020
# - name: Set up GNAT (FSF)
# if: runner.os == 'Linux'
# uses: ada-actions/toolchain@ce2021
# with:
# distrib: fsf
#
# - name: Set up GNAT (CE)
# if: runner.os != 'Linux'
# uses: ada-actions/toolchain@ce2021
# with:
# distrib: community

# Until conditionals work in composite actions, we are forced to use always
# the CE edition
- name: Set up GNAT (CE)
uses: ada-actions/toolchain@ce2020 # 2020 required for macOS
with:
distrib: community

- name: Set up Alire
uses: alire-project/setup-alire@latest-devel
with:
toolchain: ${{ toolchain }}
toolchain_dir: ${{ toolchain_dir }}
toolchain: ${{ inputs.toolchain }}
toolchain_dir: ${{ inputs.toolchain_dir }}