From 99ec59b60ecef178927d2baaa6f30521d340ffee Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Mon, 12 Aug 2024 16:31:29 +0200 Subject: [PATCH] Exchange unwanted dependency with manual step --- action.yml | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/action.yml b/action.yml index 68a9b679..3fc777fb 100644 --- a/action.yml +++ b/action.yml @@ -107,27 +107,18 @@ runs: shell: bash run: echo "need=true" >> $GITHUB_OUTPUT - - name: Install GNAT (I) Linux - if: steps.need-GNAT.outputs.need == 'true' && runner.os == 'Linux' - uses: engineerd/configurator@v0.0.10 - with: - name: alr - url: https://github.com/alire-project/alire/releases/download/v2.0.0/alr-2.0.0-bin-x86_64-linux.zip - pathInArchive: bin/alr - - name: Install GNAT (I) macOS - if: steps.need-GNAT.outputs.need == 'true' && runner.os == 'macOS' - uses: engineerd/configurator@v0.0.10 - with: - name: alr - url: https://github.com/alire-project/alire/releases/download/v2.0.0/alr-2.0.0-bin-x86_64-macos.zip - pathInArchive: bin/alr - - name: Install GNAT (I) Windows - if: steps.need-GNAT.outputs.need == 'true' && runner.os == 'Windows' - uses: engineerd/configurator@v0.0.10 - with: - name: alr.exe - url: https://github.com/alire-project/alire/releases/download/v2.0.0/alr-2.0.0-bin-x86_64-windows.zip - pathInArchive: bin/alr.exe + # Replace previous three alternatives with a manual download and path + # addition + - name: Install GNAT (I) + if: steps.need-GNAT.outputs.need == 'true' + shell: bash + run: | + os_lower=$(echo "${{ runner.os }}" | tr '[:upper:]' '[:lower:]') + alr_version=2.0.1 + curl -L -O https://github.com/alire-project/alire/releases/download/v${alr_version}/alr-${alr_version}-bin-x86_64-${os_lower}.zip + unzip alr-${alr_version}-bin-x86_64-${os_lower}.zip + rm alr-${alr_version}-bin-x86_64-${os_lower}.zip + echo "$PWD/bin" >> $GITHUB_ENV - name: Install GNAT (II) if: steps.need-GNAT.outputs.need == 'true'