Skip to content

Commit 0bdf894

Browse files
committed
Merge branch 'master' into v1
2 parents 5dadfd3 + 9e2d85d commit 0bdf894

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- run: npm install
1919
- uses: ./
2020
- run: crystal eval "puts 1337"
21+
- run: shards --version
22+
if: runner.os != 'Windows'
2123
- uses: ./
2224
with:
2325
crystal: nightly

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ install-crystal
55

66
Works on Ubuntu, macOS, Windows.
77

8+
On Ubuntu and macOS this also installs `shards`. This will be expanded in the future.
9+
810
## Examples
911

1012
```yaml
@@ -13,6 +15,19 @@ steps:
1315
- run: crystal eval "puts 1337"
1416
```
1517
18+
```yaml
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: oprypin/install-crystal@v1
22+
with:
23+
crystal: 0.34.0
24+
- run: crystal spec
25+
```
26+
27+
Also see [.github/workflows/release.yml](.github/workflows/release.yml) as an example.
28+
29+
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.
30+
1631
## Usage
1732
1833
### Inputs
@@ -51,3 +66,4 @@ steps:
5166
[github action]: https://github.com/features/actions
5267
[crystal]: https://crystal-lang.org/
5368
[crystal.git]: https://github.com/crystal-lang/crystal
69+
[crystal-starter]: https://github.com/actions/starter-workflows/blob/master/ci/crystal.yml

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ async function installBinaryRelease({crystal, suffix, destination}) {
123123
}
124124

125125
Core.info("Setting up environment");
126+
Core.addPath(Path.join(path, "embedded", "bin"));
126127
Core.addPath(Path.join(path, "bin"));
127128
}
128129

0 commit comments

Comments
 (0)