Skip to content

Commit

Permalink
Simplify build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonGrodin committed Aug 13, 2024
1 parent 16d5fcb commit 085a866
Showing 1 changed file with 68 additions and 47 deletions.
115 changes: 68 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,65 +8,86 @@ on:
- cron: '0 0 * * MON'

jobs:
install-sml:
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-11, windows-latest]
smlnj-version: [110.87, 110.97, 110.98, 110.98.1, 110.99, 110.99.2, 110.99.3, 110.99.4, 110.99.5, 2022.1, 2024.2]
exclude:
# 32-bit dependencies do not install on Ubuntu 22.04+
- os: ubuntu-latest
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.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
include:
# SML/NJ 110.87 and 110.97
- os: ubuntu-20.04
smlnj-version: 110.87
- os: ubuntu-latest
smlnj-version: 110.97
# SML/NJ versions before 110.98 do not support Big Sur
- os: macos-11
- os: windows-latest
smlnj-version: 110.87
- os: macos-11
smlnj-version: 110.97
# SML/NJ 2022.1 does not support Linux or Windows
- os: ubuntu-latest
smlnj-version: 2022.1
- os: ubuntu-20.04
smlnj-version: 2022.1
- os: windows-latest
smlnj-version: 2022.1
# SML/NJ 2024.2 does not support Windows
smlnj-version: 110.97
- os: windows-latest
smlnj-version: 2024.2
include:
- os: macos-latest
smlnj-version: 110.99.2
- os: macos-latest
smlnj-version: 110.99.3
- os: macos-latest
smlnj-version: 110.99.4
- os: macos-latest
smlnj-version: 110.99.5
- os: macos-latest
smlnj-version: 2022.1
- os: macos-latest
smlnj-version: 2024.2
- os: macos-13
smlnj-version: 110.99.3
- os: macos-13
smlnj-version: 110.99.4
- os: macos-13
smlnj-version: 110.99.5
- os: macos-13
smlnj-version: 110.97

steps:
- uses: actions/checkout@v4
- uses: ./
with:
smlnj-version: ${{ matrix.smlnj-version }}
- name: Test version output (Unix)
if: matrix.os != 'windows-latest'
run: |
[[ $(sml @SMLversion) == "sml ${{ matrix.smlnj-version }}" ]]
- name: Test version output (Windows)
if: matrix.os == 'windows-latest'
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-22.04
- ubuntu-24.04
- ubuntu-latest
- macos-12
- macos-13
- macos-14
- macos-latest
smlnj-version:
- 2022.1
- 2023.1
- 2024.1
- 2024.2
exclude:
# SML/NJ 2022.1 does not support Linux or Windows
- os: ubuntu-*
smlnj-version: 2022.1
- os: macos-13
smlnj-version: 2024.2
- os: macos-14
smlnj-version: 110.99.4
- os: macos-14
smlnj-version: 110.99.5
- os: macos-14
- os: windows-*
smlnj-version: 2022.1

steps:
Expand Down

0 comments on commit 085a866

Please sign in to comment.