-
Notifications
You must be signed in to change notification settings - Fork 1
126 lines (119 loc) · 3.22 KB
/
main.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
name: build-test
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * MON'
jobs:
legacy:
name: SML/NJ ${{ matrix.smlnj-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-latest
- macos-12
- macos-13
- macos-14
- macos-latest
- windows-2019
- windows-latest
smlnj-version:
- 110.98
- 110.98.1
- 110.99
- 110.99.2
- 110.99.3
- 110.99.4
- 110.99.5
- 110.99.6
include:
# SML/NJ 110.87 and 110.97
- os: ubuntu-20.04
smlnj-version: 110.87
- os: windows-latest
smlnj-version: 110.87
- os: ubuntu-20.04
smlnj-version: 110.97
- os: windows-latest
smlnj-version: 110.97
exclude:
- os: macos-12
smlnj-version: 110.98
- os: macos-12
smlnj-version: 110.98.1
- os: macos-12
smlnj-version: 110.99
- os: macos-12
smlnj-version: 110.99.2
- os: macos-13
smlnj-version: 110.98
- os: macos-13
smlnj-version: 110.98.1
- os: macos-13
smlnj-version: 110.99
- os: macos-13
smlnj-version: 110.99.2
- os: macos-13
smlnj-version: 110.99.3
- os: macos-14
smlnj-version: 110.98
- os: macos-14
smlnj-version: 110.98.1
- os: macos-14
smlnj-version: 110.99
- os: macos-14
smlnj-version: 110.99.2
- os: macos-14
smlnj-version: 110.99.3
- os: macos-latest
smlnj-version: 110.98
- os: macos-latest
smlnj-version: 110.98.1
- os: macos-latest
smlnj-version: 110.99
- os: macos-latest
smlnj-version: 110.99.2
- os: macos-latest
smlnj-version: 110.99.3
steps:
- uses: actions/checkout@v4
- uses: ./
with:
smlnj-version: ${{ matrix.smlnj-version }}
- name: Test version output (Unix)
if: ${{ !startsWith(matrix.os, 'windows-') }}
run: |
[[ $(sml @SMLversion) == "sml ${{ matrix.smlnj-version }}" ]]
- name: Test version output (Windows)
if: ${{ startsWith(matrix.os, 'windows-') }}
run: |
# "$(sml @SMLversion)" -eq "sml ${{ matrix.smlnj-version }}"
Get-Command sml
development:
name: SML/NJ ${{ matrix.smlnj-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-latest
- macos-12
- macos-13
smlnj-version:
- 2024.1
- 2024.2
steps:
- uses: actions/checkout@v4
- uses: ./
with:
smlnj-version: ${{ matrix.smlnj-version }}
- name: Test version output
run: |
[[ $(sml @SMLversion) == "sml ${{ matrix.smlnj-version }}" ]]