-
-
Notifications
You must be signed in to change notification settings - Fork 49
81 lines (68 loc) · 2.05 KB
/
ci-community.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI Community
# Check proper build using the community edition of the AdaCore toolchain
on:
pull_request:
paths-ignore:
- 'doc/**'
- '**.md'
- '**.rst'
- '**.txt'
workflow_dispatch:
jobs:
build:
name: ce${{matrix.version}} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Attempt to generate as many of them as possible
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
version:
- 2020
- 2021
exclude:
- os: macos-latest
version: 2021 # it was never released for macOS
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: true
# Until some stable alr with `alr install` is available, we cannot rely on
# the alr-install action, as that introduces a circular dependency. If a
# nightly build were to fail, there's no way to do an `alr install` anymore
# TODO: replace with `alr-install` once alr 2.0 is out.
# We cannot use variable names in the action reference, so we need to make
# them explicit twice
- name: Install Community 2020 toolchain
uses: ada-actions/toolchain@ce2020
if: ${{ matrix.version == '2020' }}
with:
distrib: community
- name: Install Community 2021 toolchain
uses: ada-actions/toolchain@ce2021
if: ${{ matrix.version == '2021' }}
with:
distrib: community
- name: Install Python 3.x (required for the testsuite)
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run test script
run: scripts/ci-github.sh
shell: bash
- name: Upload logs (if failed)
if: failure()
uses: actions/upload-artifact@master
with:
name: e3-log-linux.zip
path: testsuite/out
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: alr-bin-${{ matrix.os }}.zip
path: |
bin/alr*
LICENSE.txt