@@ -12,33 +12,32 @@ jobs:
12
12
steps :
13
13
- name : Get VSS
14
14
uses : actions/checkout@v2
15
+ with :
16
+ path : ./vss
15
17
- uses : actions/cache@v2
16
18
with :
17
19
path : ./cached_gnat
18
- key : ${{ runner.os }}-gnat-ce-2021
19
- restore-keys : ${{ runner.os }}-gnat-ce-2021
20
- - name : Get GNAT Community 2021 toolchain
21
- if : ${{ runner.os != 'macOS' }}
22
- uses : ada-actions/toolchain@ce2021
23
- with :
24
- distrib : community
25
- install_dir : ./cached_gnat
26
- - name : Get GNAT Community 2020 toolchain
27
- if : ${{ runner.os == 'macOS' }}
28
- uses : ada-actions/toolchain@ce2020
20
+ key : ${{ runner.os }}-alire_v1
21
+ restore-keys : ${{ runner.os }}-alire_v1
22
+ - name : Get GNAT toolchain with alire
23
+ uses : alire-project/setup-alire@v1
29
24
with :
30
- distrib : community
31
- install_dir : ./cached_gnat
25
+ toolchain : gnat_native^11 gprbuild^21
26
+ toolchain_dir : ./cached_gnat
32
27
- name : Get UCD.zip
33
28
run : |
34
- curl -C - -o ./cached_gnat/ UCD-13.0.0.zip https://www.unicode.org/Public/13.0.0/ucd/UCD.zip
35
- mkdir data
36
- mkdir data/ucd
37
- unzip cached_gnat/ UCD-13.0.0.zip -d . /data/ucd
29
+ curl -C - -o UCD-13.0.0.zip https://www.unicode.org/Public/13.0.0/ucd/UCD.zip
30
+ mkdir vss/ data
31
+ mkdir vss/ data/ucd
32
+ unzip UCD-13.0.0.zip -d vss /data/ucd
38
33
- name : Build and test
34
+ shell : bash
39
35
run : |
40
- make all check coverage BUILD_MODE=${{ matrix.build_mode }}
41
- make install check_install PREFIX=/tmp BUILD_MODE=${{ matrix.build_mode }}
36
+ export PATH=`ls -d $PWD/cached_gnat/*/bin |tr '\n' ':'`$PATH
37
+ make -C vss all check coverage BUILD_MODE=${{ matrix.build_mode }}
38
+ make -C vss install check_install PREFIX=/tmp BUILD_MODE=${{ matrix.build_mode }}
42
39
- name : Upload coverage to Codecov
43
- uses : codecov/codecov-action@v1
40
+ uses : codecov/codecov-action@v2
44
41
if : ${{ matrix.build_mode == 'coverage' }}
42
+ with :
43
+ working-directory : vss
0 commit comments