generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
206 lines (197 loc) · 6.21 KB
/
setup-legacy.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: setup legacy
on:
push:
branches: ['main']
paths: ['**.ts', '**.js', '**.json', '**.yml']
pull_request:
branches: ['main']
paths: ['**.ts', '**.js', '**.json', '**.yml']
types: [opened, synchronize, reopened]
# Limit concurrent runs to one per branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
################################################################################
# Setup Agda (legacy) on every supported platform
################################################################################
setup-legacy:
name: Setup Agda (${{ matrix.agda-version }}) on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Agda (${{ matrix.agda-version }})
uses: ./
with:
force-no-build: true
agda-version: ${{ matrix.agda-version }}
agda-stdlib-version: 'recommended'
- name: Test Agda
run: |
agda -v0 greet.agda
shell: sh
working-directory: tests/agda
- name: Test Agda with agda-stdlib
run: |
agda -v0 hello-world-dep.agda
agda -v0 hello-world-dep-lookup.agda
agda -v0 hello-world-proof.agda
shell: sh
working-directory: tests/agda-stdlib
strategy:
fail-fast: false
matrix:
os:
[
ubuntu-22.04,
ubuntu-20.04,
macos-12,
macos-14,
windows-2019,
windows-2022
]
agda-version:
[
'2.7.0.1',
'2.7.0',
'2.6.4.3',
'2.6.4.1',
'2.6.4',
'2.6.3',
'2.6.2.2',
'2.6.2.1',
'2.6.2',
'2.6.1.3',
'2.6.0.1',
'2.5.4.2',
'2.5.3',
'2.5.2'
]
exclude:
# Exclude older Agda versions for macOS (>=14)
- agda-version: '2.6.2.2'
os: macos-14
- agda-version: '2.6.2.1'
os: macos-14
- agda-version: '2.6.2'
os: macos-14
- agda-version: '2.6.1.3'
os: macos-14
- agda-version: '2.6.0.1'
os: macos-14
- agda-version: '2.5.4.2'
os: macos-14
- agda-version: '2.5.3'
os: macos-14
- agda-version: '2.5.2'
os: macos-14
# Exclude older Agda versions for Windows
- agda-version: '2.6.1.3'
os: windows-2022
- agda-version: '2.6.0.1'
os: windows-2022
- agda-version: '2.5.4.2'
os: windows-2022
- agda-version: '2.5.3'
os: windows-2022
- agda-version: '2.5.2'
os: windows-2022
- agda-version: '2.6.1.3'
os: windows-2019
- agda-version: '2.6.0.1'
os: windows-2019
- agda-version: '2.5.4.2'
os: windows-2019
- agda-version: '2.5.3'
os: windows-2019
- agda-version: '2.5.2'
os: windows-2019
################################################################################
# Setup Agda on Ubuntu with various libraries & executables
################################################################################
setup-with-agda-categories:
name: Setup Agda (${{ matrix.versions.agda }}) with agda-categories (${{ matrix.versions.agda-categories }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Agda
uses: ./
with:
force-no-build: true
agda-version: ${{ matrix.versions.agda }}
agda-stdlib-version: ${{ matrix.versions.agda-stdlib }}
agda-defaults: ${{ matrix.setup-as-default.agda-defaults }}
agda-libraries: |
https://github.com/agda/agda-categories.git#v${{ matrix.versions.agda-categories }}
- name: Test Agda with agda-categories
run: |
agda -v0 hello-categories.agda
shell: sh
working-directory: ${{ matrix.setup-as-default.working-directory }}
strategy:
fail-fast: false
matrix:
versions:
- agda: '2.6.2.2'
agda-stdlib: '1.7'
agda-categories: '0.1.7.1'
setup-as-default:
- agda-defaults: ''
working-directory: tests/agda-categories
- agda-defaults: |
agda-categories
working-directory: tests/agda-categories-default
setup-with-agda-stdlib:
name: Setup Agda (${{ matrix.versions.agda }}) with agda-stdlib (${{ matrix.versions.agda-stdlib }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Agda
uses: ./
with:
force-no-build: true
agda-version: ${{ matrix.versions.agda }}
agda-stdlib-version: ${{ matrix.versions.agda-stdlib }}
agda-defaults: ${{ matrix.setup-as-default.agda-defaults }}
- name: Test Agda with agda-stdlib
run: |
agda -v0 hello-world-dep.agda
agda -v0 hello-world-dep-lookup.agda
agda -v0 hello-world-proof.agda
shell: sh
working-directory: ${{ matrix.setup-as-default.working-directory }}
strategy:
fail-fast: false
matrix:
versions:
- agda: '2.6.2.2'
agda-stdlib: '1.7'
setup-as-default:
- agda-defaults: ''
working-directory: tests/agda-stdlib
- agda-defaults: |
standard-library
working-directory: tests/agda-stdlib-default
setup-with-access-to-echo:
name: Setup Agda (${{ matrix.versions.agda }}) with access to /bin/echo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Agda
uses: ./
with:
force-no-build: true
agda-version: ${{ matrix.versions.agda }}
agda-executables: |
/bin/echo
- name: Test Agda with /bin/echo
run: |
agda -v0 echo.agda
shell: sh
working-directory: tests/echo
strategy:
fail-fast: false
matrix:
versions:
- agda: '2.6.2.2'
agda-stdlib: '1.7'