Skip to content

Commit 4fb0b42

Browse files
authored
Update README.md
1 parent 1ba6623 commit 4fb0b42

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ Works on Ubuntu, macOS, Windows.
1111
steps:
1212
- uses: oprypin/install-crystal@v1
1313
- run: crystal eval "puts 1337"
14+
```
15+
16+
```yaml
17+
steps:
1418
- uses: actions/checkout@v2
19+
- uses: oprypin/install-crystal@v1
20+
with:
21+
crystal: 0.34.0
1522
- run: crystal spec
1623
```
1724
1825
Also see [.github/workflows/release.yml](.github/workflows/release.yml) as an example.
1926
27+
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.
28+
2029
## Usage
2130
2231
### Inputs
@@ -55,3 +64,4 @@ Also see [.github/workflows/release.yml](.github/workflows/release.yml) as an ex
5564
[github action]: https://github.com/features/actions
5665
[crystal]: https://crystal-lang.org/
5766
[crystal.git]: https://github.com/crystal-lang/crystal
67+
[crystal-starter]: https://github.com/actions/starter-workflows/blob/master/ci/crystal.yml

0 commit comments

Comments
 (0)