Simplify build matrix #859
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-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: windows-latest | |
smlnj-version: 110.87 | |
- os: ubuntu-20.04 | |
smlnj-version: 110.97 | |
- os: windows-latest | |
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: windows-* | |
smlnj-version: 2022.1 | |
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 |