Skip to content

Commit 8f27079

Browse files
committed
Update release Github workflow.
1 parent 0a89d1b commit 8f27079

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ on:
55
tags:
66
- 'v*'
77

8+
env:
9+
CRYSTAL_VERSION: 1.14
10+
811
jobs:
912
build_linux_amd64:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4
1417

15-
- name: Add Crystal repos
16-
run: curl -sSL https://crystal-lang.org/install.sh | sudo bash
17-
1818
- name: Install crystal
19-
run: sudo apt install -y crystal libevent-dev libpcre3-dev libreadline-dev libssl-dev
19+
uses: crystal-lang/install-crystal@v1
20+
with:
21+
crystal: ${{ env.CRYSTAL_VERSION }}
2022

2123
- name: Install dependencies
2224
run: shards install
@@ -37,11 +39,10 @@ jobs:
3739
- name: Checkout
3840
uses: actions/checkout@v4
3941

40-
- name: Add Crystal repos
41-
run: curl -sSL https://crystal-lang.org/install.sh | sudo bash
42-
4342
- name: Install crystal
44-
run: sudo apt install -y crystal libevent-dev libpcre3-dev libreadline-dev libssl-dev
43+
uses: crystal-lang/install-crystal@v1
44+
with:
45+
crystal: ${{ env.CRYSTAL_VERSION }}
4546

4647
- name: Install dependencies
4748
run: shards install
@@ -74,7 +75,12 @@ jobs:
7475
uses: actions/checkout@v4
7576

7677
- name: Install crystal
77-
run: brew install crystal
78+
uses: crystal-lang/install-crystal@v1
79+
with:
80+
crystal: ${{ env.CRYSTAL_VERSION }}
81+
82+
- name: Install boehmgc via homebrew
83+
run: brew install bdw-gc
7884

7985
- name: Install gon via homebrew for code signing and app notarization
8086
run: |
@@ -101,7 +107,12 @@ jobs:
101107
uses: actions/checkout@v4
102108

103109
- name: Install crystal
104-
run: brew install crystal
110+
uses: crystal-lang/install-crystal@v1
111+
with:
112+
crystal: ${{ env.CRYSTAL_VERSION }}
113+
114+
- name: Install boehmgc via homebrew
115+
run: brew install bdw-gc
105116

106117
- name: Install gon via homebrew for code signing and app notarization
107118
run: |

0 commit comments

Comments
 (0)