fix(ci): estate-wide foundational remediation (#90) #295
This file contains hidden or 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
| # SPDX-License-Identifier: MPL-2.0 | |
| name: Ada (GNAT) | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: read-all | |
| jobs: | |
| build: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up GNAT toolchain | |
| run: > | |
| sudo apt-get update && | |
| sudo apt-get install gnat gprbuild | |
| - name: Build | |
| # Use gnatmake, not gprbuild: apt's gprbuild on ubuntu-latest is not | |
| # gprconfig-wired to the FSF Ada compiler ("no compiler for language | |
| # Ada"). gnatmake drives the gnat compiler directly. | |
| run: | | |
| mkdir -p obj bin | |
| gnatmake -o bin/modshells src/main/modshells.adb \ | |
| -Isrc/main -Isrc/config_store -Isrc/shell_manager -Isrc/shell_validator -D obj |