Skip to content

Enhance compatibility for older compiler #69

Enhance compatibility for older compiler

Enhance compatibility for older compiler #69

Workflow file for this run

name: Crystal CI
on:
push:
branches: ["main"]
paths:
- "src/**"
pull_request:
branches: ["main"]
paths:
- "src/**"
schedule:
- cron: "0 0 * * 1" # Every Monday 8 AM CST
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
crystal: [latest, nightly]
include:
- os: ubuntu-latest
crystal: 1.8.0
runs-on: ${{ matrix.os }}
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Install shards
run: shards install
- name: Run tests
run: crystal spec --order=random
- name: Build
run: shards build