Skip to content

Commit

Permalink
Fix use of unintended FSF GNAT version in CI
Browse files Browse the repository at this point in the history
Ref. #1124
  • Loading branch information
treiher committed Jul 28, 2022
1 parent 570aa0c commit 4568620
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ jobs:
uses: alire-project/setup-alire@v1
with:
version: ${{ env.ALIRE_VERSION }}
toolchain: "--disable-assistant"
- name: Install FSF GNAT
if: ${{ needs.skip_check_compilation.outputs.should_skip != 'true' && matrix.gnat-distrib == 'fsf' }}
run: |
Expand Down Expand Up @@ -494,25 +495,38 @@ jobs:
gnat-distrib:
- "community"
- "fsf"
env:
FSF_GNAT_VERSION: 11.2.4
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache GNAT Community
if: ${{ matrix.gnat-distrib == 'community' }}
uses: actions/cache@v2
with:
path: /home/runner/work/gnat
key: ${{ runner.os }}-gnat-ce2021
- name: Install GNAT Community
if: ${{ matrix.gnat-distrib == 'community' }}
uses: ada-actions/toolchain@ce2021
with:
distrib: community
install_dir: /home/runner/work/gnat
- name: Cache Alire and FSF GNAT
if: ${{ matrix.gnat-distrib == 'fsf' }}
uses: actions/cache@v2
with:
path: |
~/.config/alire
build/alire
key: ${{ runner.os }}-alire${{ env.ALIRE_VERSION }}-fsf${{ env.FSF_GNAT_VERSION }}-${{ hashFiles('Makefile') }}
- name: Install Alire
if: ${{ matrix.gnat-distrib == 'fsf' }}
uses: alire-project/setup-alire@v1
with:
version: ${{ env.ALIRE_VERSION }}
toolchain: "--disable-assistant"
- name: Install FSF GNAT
if: ${{ matrix.gnat-distrib == 'fsf' }}
run: |
Expand Down Expand Up @@ -697,6 +711,7 @@ jobs:
uses: alire-project/setup-alire@v1
with:
version: ${{ env.ALIRE_VERSION }}
toolchain: "--disable-assistant"
- name: Install FSF GNAT
if: ${{ needs.skip_check_apps.outputs.should_skip != 'true' && matrix.gnat-distrib == 'fsf' }}
run: |
Expand Down Expand Up @@ -870,6 +885,7 @@ jobs:
uses: alire-project/setup-alire@v1
with:
version: ${{ env.ALIRE_VERSION }}
toolchain: "--disable-assistant"
- name: Install FSF GNAT
if: ${{ needs.skip_check_specs.outputs.should_skip != 'true' && matrix.gnat-distrib == 'fsf' }}
run: |
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,15 @@ upgrade_devel:
install_devel_edge: install_devel
$(MAKE) -C .config/python-style install_devel_edge

install_gnat: FSF_GNAT_VERSION ?= 11.2.4
install_gnat: GPRBUILD_VERSION ?= 22.0.1
install_gnat:
test -d build/alire || ( \
alr toolchain --install gnat_native=11.2.1 && \
mkdir -p build && \
cd build && \
alr -n init --lib alire && \
cd alire && \
alr toolchain --select --local gnat_native=$(FSF_GNAT_VERSION) gprbuild=$(GPRBUILD_VERSION) && \
alr -n with aunit gnatcoll_iconv gnatcoll_gmp \
)

Expand Down

0 comments on commit 4568620

Please sign in to comment.