diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bf2dffa..5977e20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,11 +25,20 @@ jobs: with: version: 1.2.0-rc1 + - run: alr index "--add=git+https://github.com/alire-project/alire-index#gnat_n_gnatprove_12" --name=test --before=community + # Build the project using the validation build profile to enforce static analysis and coding style. - run: alr build --validation # Run GNATprove to perform automatice formal verification of the SPARK code. - - run: alr gnatprove -j0 --level=4 + - run: alr gnatprove -j0 --level=4 --checks-as-errors --report=provers -v + + - uses: actions/upload-artifact@v3 + with: + name: gnatprove.out + path: obj\validation\gnatprove\gnatprove.out + + - run: alr exec -- gnatprove --version # Instrument the project code for coverage analysis. - run: cd tests && alr gnatcov instrument --level=stmt --dump-trigger=atexit --projects ada_spark_workflow.gpr @@ -61,6 +70,7 @@ jobs: # Save the path to the release manifest for the next step. # This is a little trick to get around the fact that the actions/upload-release-asset doesn't allow globing pattern. - name: Get Release Manifest PATH + shell: bash run: | export MANIFEST_PATHNAME=$(ls alire/releases/*.toml | head -n 1) echo MANIFEST_PATHNAME=$MANIFEST_PATHNAME >> $GITHUB_ENV diff --git a/alire.toml b/alire.toml index 9541a1b..67c7159 100644 --- a/alire.toml +++ b/alire.toml @@ -11,7 +11,7 @@ licenses = "MIT" [[depends-on]] resources = "~0.1.0" -gnatprove = "^11.2.3" +gnatprove = "^12.1.1" [[pins]] resources = { url='https://github.com/alire-project/resources' }