-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/gnatformat' into 'master'
Add gnatformat as a dependency See merge request eng/ide/ada_language_server!1655
- Loading branch information
Showing
5 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,21 +40,24 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get GNAT toolchain with alire (AArch64) | ||
if: ${{ matrix.os == 'macos-14' }} | ||
- name: Get GNAT toolchain with alire | ||
shell: bash | ||
run: | | ||
# alire-project/setup-alire doesn't work for ARM64 Mac OS X for now. | ||
# https://github.com/alire-project/setup-alire/pull/74 | ||
curl -L -O https://github.com/alire-project/alire/releases/download/nightly/alr-nightly-bin-aarch64-macos.zip | ||
unzip alr-nightly-bin-aarch64-macos.zip | ||
# Also it depends on `engineerd/[email protected]` not approved by IT. | ||
# https://github.com/alire-project/setup-alire/issues/75 | ||
# So we fetch Alire with curl then toolchain with Alire. | ||
if [[ "$RUNNER_ARCH" == ARM64 ]] ; then | ||
ZIP=nightly/alr-nightly-bin-aarch64-macos.zip | ||
else | ||
ZIP=v2.0.1/alr-2.0.1-bin-x86_64-${RUNNER_OS}.zip | ||
fi | ||
curl -L -O https://github.com/alire-project/alire/releases/download/$ZIP | ||
unzip $(basename $ZIP) | ||
bin/alr index --reset-community | ||
bin/alr toolchain --select gnat_native^14 gprbuild | ||
echo $PWD/bin >> $GITHUB_PATH | ||
- name: Get GNAT toolchain with alire (x86_64) | ||
if: ${{ matrix.os != 'macos-14' }} | ||
uses: alire-project/setup-alire@v3 | ||
with: | ||
toolchain: gnat_native^14 gprbuild | ||
- name: Build | ||
shell: bash | ||
run: | | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name = "gnatformat" | ||
description = "An opinionated code formatter for the Ada language." | ||
version = "25.0.0-20240625" | ||
|
||
authors = ["AdaCore"] | ||
maintainers = ["João Azevedo <[email protected]>"] | ||
maintainers-logins = ["joaopsazevedo"] | ||
licenses = "Apache-2.0 WITH LLVM-exception" | ||
website = "https://github.com/AdaCore/gnatformat" | ||
|
||
project-files = ["gnat/gnatformat.gpr"] | ||
|
||
[environment.'case(os)'.macos.DYLD_LIBRARY_PATH] | ||
append = "${CRATE_ROOT}/.libs/relocatable" | ||
|
||
[environment.'case(os)'.windows.PATH] | ||
append = "${CRATE_ROOT}/.libs/relocatable" | ||
|
||
[configuration] | ||
disabled = true | ||
|
||
[[depends-on]] | ||
libadalang = "^24" | ||
prettier_ada = "25.0.0-20240625" | ||
|
||
[origin] | ||
url = "git+https://github.com/AdaCore/gnatformat" | ||
commit = "b418fcc894877777ecf4102410ba4eeee279e219" | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name = "gnatformat" | ||
description = "An opinionated code formatter for the Ada language." | ||
version = "25.0.0-20240625" | ||
|
||
authors = ["AdaCore"] | ||
maintainers = ["João Azevedo <[email protected]>"] | ||
maintainers-logins = ["joaopsazevedo"] | ||
licenses = "Apache-2.0 WITH LLVM-exception" | ||
website = "https://github.com/AdaCore/gnatformat" | ||
|
||
project-files = ["gnat/gnatformat.gpr"] | ||
|
||
[environment.'case(os)'.macos.DYLD_LIBRARY_PATH] | ||
append = "${CRATE_ROOT}/.libs/relocatable" | ||
|
||
[environment.'case(os)'.windows.PATH] | ||
append = "${CRATE_ROOT}/.libs/relocatable" | ||
|
||
[configuration] | ||
disabled = true | ||
|
||
[[depends-on]] | ||
libadalang = "^24" | ||
prettier_ada = "25.0.0-20240625" |