-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 908 Bytes
/
Copy pathada.yml
File metadata and controls
36 lines (29 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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