Skip to content

Commit

Permalink
Try to build AArch64 ALS on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
reznikmm committed Aug 29, 2024
1 parent 8daf5e1 commit a6efd7c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,33 @@ jobs:
bin/alr index --reset-community
bin/alr toolchain --select gnat_native^14 gprbuild
echo $PWD/bin >> $GITHUB_PATH
- name: Get cross GNAT toolchain (Linux)
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt install -y libc6-dev-arm64-cross linux-libc-dev-arm64-cross binutils-aarch64-linux-gnu
curl -L 'https://www.dropbox.com/scl/fi/0qe3ouaf1asty5z6kc5nw/aarch64-Linux-gnat-14.tar?rlkey=dxuztwe4zfpdy3bd96fsr3ckm&st=jl7ascbf&dl=1' \
| tar xvf -
# aws s3 cp s3://adacore-gha-tray-eu-west-1/toolchain/aarch64-Linux-gcc-14.2.tar.bz2 . --sse=AES256
# aws s3 cp s3://adacore-gha-tray-eu-west-1/toolchain/aarch64-Linux-gmp-6.2.1.tar.bz2 . --sse=AES256
sudo tar xjf aarch64-Linux-gcc-14.2.tar.bz2 -C /
sudo tar xjf aarch64-Linux-gmp-6.2.1.tar.bz2 -C /
- name: Build
shell: bash
run: |
alr settings --global --set dependencies.shared false
pip3 install e3-testsuite
scripts/build_als.sh all "$TAG"
- name: Build ALS with cross (Linux)
if: ${{ runner.os == 'Linux' }}
run: |
if gprconfig --show-targets | grep aarch64-linux; then
export GPRBUILD_EXTRA=--target=aarch64-linux
scripts/build_als.sh build_als "$TAG" arm64/linux
scripts/build_als.sh strip_debug "$TAG" arm64/linux
else
echo "No AArch64 cross compiler found:"
gprconfig --show-targets
fi
- name: Archive ALS binary
uses: actions/upload-artifact@v4
with:
Expand All @@ -80,6 +101,9 @@ jobs:
if: ${{ env.TAG != env.DEFAULT_TAG }}
run: |
.github/workflows/release.sh "${{ secrets.GITHUB_TOKEN }}" $TAG ""
if [ -f integration/vscode/ada/arm64/linux/ada_language_server ] ; then
.github/workflows/release.sh "${{ secrets.GITHUB_TOKEN }}" $TAG arm64/linux
fi
- name: Package
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TESTER=$(ROOTDIR)/.obj/tester/tester-run$(EXE)
# Env variable to set for update VS Code test references
MOCHA_ALS_UPDATE=

GPRBUILD_EXTRA=
GPRBUILD_EXTRA ?=
GPRBUILD_FLAGS=-m -j$(PROCESSORS) $(GPRBUILD_EXTRA)
GPRBUILD=gprbuild $(GPRBUILD_FLAGS) -XSUPERPROJECT=
GPRCLEAN_EXTRA=
Expand Down

0 comments on commit a6efd7c

Please sign in to comment.