Alire port to aarch64 (Linux)
This repository is a draft port of Alire to aarch64
Linux platform.
This works in particular on Ubuntu 22.04 and Raspberry Pi 64-bits.
- Download
alr
and add it to thePATH
environment variable:
wget https://github.com/reznikmm/aarch64-alire-index/releases/download/v2.0.1/alr-2.0.1-bin-aarch64-linux.zip
unzip alr-2.0.1-bin-aarch64-linux.zip
export PATH=$PWD/bin:$PATH
- Clone and setup
aarch64-alire-index
:
alr index --reset-community
alr index --add git+https://github.com/reznikmm/aarch64-alire-index.git \
--name aarch64 --before community
- Install Aarch64 GNAT and
gprbuild
:
alr toolchain --select gnat_native=14.2.1 gprbuild=22.0.1
- Done! Use
alr
as usual:
alr get --build hello
The Circle CI has an ARM
machine executor in a free plan.
To use it add a .circleci/config.yml
YAML configuration, like this:
version: 2.1
jobs:
say-hello:
resource_class: arm.medium
machine:
image: cimg/base:current-22.04
steps:
- checkout
- run:
name: "Build with alr"
command: |
curl -O -L https://github.com/reznikmm/aarch64-alire-index/releases/download/v2.0.1/alr-2.0.1-bin-aarch64-linux.zip
unzip alr-2.0.1-bin-aarch64-linux.zip
export PATH=$PWD/bin:$PATH
alr index --reset-community
alr index --add https://github.com/reznikmm/aarch64-alire-index.git --name aarch64 --before community
alr toolchain --select gnat_native=14.2.1 gprbuild=22.0.1
alr build
workflows:
say-hello-workflow:
jobs:
- say-hello
Feel free to dive in! Visit the chat. Open an issue or submit PRs.
GPL-3 © Max Reznik