Skip to content

Commit

Permalink
Switch to GNAT Community 2021
Browse files Browse the repository at this point in the history
Ref. #494
  • Loading branch information
treiher committed Jun 8, 2021
1 parent d1c1742 commit fdedff5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
if: ${{ needs.skip_check_general.outputs.should_skip != 'true' }}
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
if: ${{ needs.skip_check_python.outputs.should_skip != 'true' }}
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
~/.local/bin
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
submodules: true
- name: Install toolchain
if: ${{ needs.skip_check_spark.outputs.should_skip != 'true' }}
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Test
Expand All @@ -259,7 +259,7 @@ jobs:
with:
submodules: true
- name: Install toolchain
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Build runtime
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
if: ${{ needs.skip_check_spark.outputs.should_skip != 'true' }}
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down Expand Up @@ -362,7 +362,7 @@ jobs:
~/.local/bin
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down Expand Up @@ -424,7 +424,7 @@ jobs:
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
if: ${{ needs.skip_check_apps.outputs.should_skip != 'true' }}
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down Expand Up @@ -471,7 +471,7 @@ jobs:
~/.local/bin
key: ${{ runner.os }}-python${{ env.PYTHON_VERSION }}-${{ hashFiles('setup.py', '*.cfg', '*.ini', '.pylintrc', '.flake8') }}
- name: Install toolchain
uses: ada-actions/toolchain@ce2020
uses: ada-actions/toolchain@ce2021
with:
distrib: community
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ if parse_message(b"\x01\x00\x04\x01\x02\x03\x04") != create_message():

As a prerequisite, the following dependencies need to be installed:

- [GNAT Community](https://www.adacore.com/download) >= 2020
- [GNAT Community](https://www.adacore.com/download) >= 2021
- [GMP](https://gmplib.org/) This is provided as a package for various distributions, e.g., libgmp-dev (Debian/Ubuntu), gmp-devel (Fedora) or gmp (Arch Linux).

RecordFlux can be installed from PyPI:
Expand Down
2 changes: 1 addition & 1 deletion defaults.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract project Defaults is
"--warnings=error",
"--proof-warnings",
"--no-axiom-guard",
"--no-counterexample",
"--counterexamples=off",
"-j0"
);

Expand Down
4 changes: 1 addition & 3 deletions examples/apps/ping/src/icmpv4.ads
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
with SPARK.Heap;
with RFLX.IPv4;
with RFLX.RFLX_Builtin_Types;
with Ada.Text_IO;
Expand All @@ -22,8 +21,7 @@ is

procedure Ping (Addr : String) with
Global => (In_Out => (Ping_State,
Ada.Text_IO.File_System,
SPARK.Heap.Dynamic_Memory),
Ada.Text_IO.File_System),
Input => Ada.Real_Time.Clock_Time);

procedure Generate (Buf : in out RFLX.RFLX_Builtin_Types.Bytes_Ptr;
Expand Down

0 comments on commit fdedff5

Please sign in to comment.