You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-10Lines changed: 29 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,20 +18,32 @@ steps:
18
18
- uses: actions/checkout@v2
19
19
- uses: oprypin/install-crystal@v1
20
20
with:
21
-
crystal: 0.35.0
21
+
crystal: 0.35.1
22
+
- run: shards install
22
23
- run: crystal spec
23
24
```
24
25
25
26
```yaml
26
-
steps:
27
-
- uses: actions/checkout@v2
28
-
- uses: oprypin/install-crystal@v1
29
-
with:
30
-
shards: true
31
-
- run: shards install
27
+
strategy:
28
+
fail-fast: false
29
+
matrix:
30
+
include:
31
+
- {os: ubuntu-latest, crystal: latest}
32
+
- {os: ubuntu-latest, crystal: nightly}
33
+
- {os: macos-latest}
34
+
- {os: windows-latest}
35
+
runs-on: ${{matrix.os}}
36
+
steps:
37
+
- uses: oprypin/install-crystal@v1
38
+
with:
39
+
crystal: ${{matrix.crystal}}
40
+
- uses: actions/checkout@v2
41
+
- run: shards install
42
+
- run: crystal spec
43
+
- run: crystal tool format --check
44
+
if: matrix.crystal == 'latest'
32
45
```
33
46
34
-
35
47
[Find usages in the wild!](https://github.com/search?l=YAML&q=%22oprypin%2Finstall-crystal%22&type=Code)
36
48
37
49
Alternatively, you can use the container-based approach [as in the starter workflow][crystal-starter] (without this action), but the advantage here is the unified approach to installation across 3 systems.
@@ -40,7 +52,7 @@ Alternatively, you can use the container-based approach [as in the starter workf
40
52
41
53
### Inputs
42
54
43
-
* * **`crystal: 0.35.0`** (not supported on Windows)
55
+
* * **`crystal: 0.35.1`** (not supported on Windows)
44
56
45
57
Install a particular release of Crystal.
46
58
@@ -79,7 +91,7 @@ Alternatively, you can use the container-based approach [as in the starter workf
79
91
80
92
* **`destination: some/path`**
81
93
82
-
The directory to store Crystal in, after extracting.
94
+
The directory to store Crystal in, after extracting. Will directly affect `outputs.path` (the default is in a temporary location).
83
95
84
96
* **`token: ${{ github.token }}`**
85
97
@@ -91,6 +103,13 @@ Alternatively, you can use the container-based approach [as in the starter workf
91
103
92
104
The actual version of Crystal (as a ref in crystal-lang/[crystal.git][]) that was installed.
0 commit comments