Add not about GNAT 12 libraries #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build using Alire. | |
name: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: write-all | |
jobs: | |
release: | |
name: Alire Latest | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: alire-project/setup-alire | |
uses: alire-project/setup-alire@v2 | |
with: | |
branch: "master" | |
- name: Update apt | |
run: sudo apt-get update | |
- name: Install dependencies of ada-mode and linuxdeploy | |
run: sudo apt-get install re2c libfuse2 gnat-12 gprbuild | |
- name: Setup Alire | |
run: | | |
alr index --update-all | |
alr toolchain --select gnat_external^12.3 gprbuild^18.0 | |
- name: Get alr2appimage | |
run: | | |
curl --remote-name --location https://github.com/mgrojo/alr2appimage/releases/download/v0.9.3/alr2appimage-0.9.3-x86_64.AppImage | |
chmod +x alr2appimage-0.9.3-x86_64.AppImage | |
- name: Get emacs_ada_mode | |
run: alr get emacs_ada_mode | |
- name: Patch gpr (remove when fixed upstream) | |
run: sed -i~ 's%ada_annex_p_lr1_parse_table.txt%bin/ada_annex_p_lr1_re2c_parse_table.txt%g' emacs_ada_mode*/emacs_ada_mode.gpr | |
- name: Build AppImage | |
run: | | |
cd emacs_ada_mode* | |
alr toolchain --select gnat_external^12.3 gprbuild^18.0 | |
alr --non-interactive build --release -- -bargs -static | |
VERSION=$(printf $(alr show | awk -v FS=[=:] '/emacs_ada_mode=/ {print $2}')) ../alr2appimage-0.9.3-x86_64.AppImage | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: emacs_ada_mode*/emacs_ada_mode*.AppImage | |
prerelease: true | |
tag_name: latest_alire |