From c3689a7ecbb02bb0d53e56e678f932b1532044b9 Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Tue, 12 Oct 2021 09:16:25 +1100 Subject: [PATCH 1/4] Add matrix of crystal versions, including nightly --- .github/workflows/ci.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dde04fc..66d5bfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,29 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} + stable: [true] + crystal: + - 0.34.0 + - 0.35.1 + - 0.36.1 + - 1.0.0 + - 1.1.1 + include: + - os: ubuntu-latest + crystal: nightly + stable: false + - os: macos-latest + crystal: nightly + stable: false + continue-on-error: ${{ !matrix.stable }} + runs-on: ${{ matrix.os }} steps: - name: Download source uses: actions/checkout@v2 - name: Install Crystal uses: crystal-lang/install-crystal@v1 + with: + crystal: ${{ matrix.crystal }} - name: Cache shards uses: actions/cache@v2 with: @@ -25,7 +42,7 @@ jobs: restore-keys: ${{ runner.os }}-shards- - name: Install shards run: shards update - + - name: Redis on ${{ runner.os }} uses: shogo82148/actions-setup-redis@v1 id: main_redis @@ -48,4 +65,3 @@ jobs: env: GITHUB_ACTIONS_CI: 1 CI_UNIXSOCKET: ${{ steps.main_redis.outputs.redis-unix-socket }} - From b368987855f9e2b6cd412396b93587598afc426c Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Tue, 12 Oct 2021 09:18:56 +1100 Subject: [PATCH 2/4] Name jobs for readability --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66d5bfd..b295ea6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: stable: false continue-on-error: ${{ !matrix.stable }} runs-on: ${{ matrix.os }} + name: 'crystal: ${{ matrix.crystal }}, os: ${{ matrix.os }}' steps: - name: Download source uses: actions/checkout@v2 From 2000818c4ea877df8509d11ba6df14ba14fee561 Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Tue, 12 Oct 2021 09:20:06 +1100 Subject: [PATCH 3/4] Cache-key against crystal version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b295ea6..dcb8259 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: uses: actions/cache@v2 with: path: ~/.cache/shards - key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }} + key: ${{ runner.os }}-${{matrix.crystal}}-shards-${{ hashFiles('shard.yml') }} restore-keys: ${{ runner.os }}-shards- - name: Install shards run: shards update From f19c70eaa3e75dcd57efe3d606c620ad5472f474 Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Tue, 12 Oct 2021 19:55:18 +1100 Subject: [PATCH 4/4] Update supported crystal range to >= 0.36.1 --- .github/workflows/ci.yml | 2 -- shard.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcb8259..6dac0dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,6 @@ jobs: os: [ubuntu-latest, macos-latest] stable: [true] crystal: - - 0.34.0 - - 0.35.1 - 0.36.1 - 1.0.0 - 1.1.1 diff --git a/shard.yml b/shard.yml index 78ecfe3..62cd6f5 100644 --- a/shard.yml +++ b/shard.yml @@ -4,7 +4,7 @@ version: 2.8.2 authors: - Stefan Wille -crystal: ">= 0.34.0, < 2.0.0" +crystal: ">= 0.36.1" dependencies: pool: