Skip to content

Commit

Permalink
Add baseline support in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Dec 12, 2024
1 parent eec9ed9 commit 1125c31
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
crystal:
type: string
default: nightly
crystal_baseline:
type: string
default: latest
shards:
type: string
default: nightly
Expand Down Expand Up @@ -57,7 +60,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: crystal-lang/install-crystal@v1
- id: install-crystal-baseline
name: Install Crystal base version
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ github.event.inputs.crystal_baseline || 'latest' }}
shards: false
destination: crystal-base

- name: Install Crystal test version
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ github.event.inputs.crystal || 'nightly' }}
shards: ${{ github.event.inputs.shards || 'nightly' }}
Expand All @@ -76,3 +88,4 @@ jobs:
env:
WINDOWS_BASE_DIR: "/d/a"
TERM: dumb
CRYSTAL_BASELINE: "${{ steps.install-crystal-baseline.outputs.path }}/bin/crystal"

0 comments on commit 1125c31

Please sign in to comment.