This action installs an Ada development environment.
The development environment distribution. Could be fsf (default) or community.
The compiler target. Could be native (default), arm-elf or riscv32-elf.
Currently fsf distribution supports only native target.
The version of community environment. Value: 2020, 2019. Default is the most recent.
Path to a directory to install a community distribution. Default is a temporary folder.
This could be used together with the actions/cache action to cache the installation.
See an example below.
steps:
- uses: actions/checkout@master
- uses: ada-actions/toolchain@dev
with:
distrib: fsf
target: native
- run: gprbuild hello
- uses: ada-actions/toolchain@dev
with:
distrib: community
target: arm-elf
- run: gprbuild --target=arm-eabi --RTS=zfp-microbit hellosteps:
- uses: actions/cache@v2
with:
path: ./cached_gnat
key: ${{ runner.os }}-gnat-ce-2020
- uses: ada-actions/toolchain@dev
with:
distrib: community
target: arm-elf
install_dir: ./cached_gnat
- run: gprbuild --target=arm-eabi --RTS=zfp-microbit helloThe scripts and documentation in this project are released under the MIT License
Contributions are welcome! See Contributor's Guide