Skip to content

Commit 976586b

Browse files
committed
Merge branch 'master' into v1
2 parents bf1b057 + 917bac4 commit 976586b

File tree

8 files changed

+296
-149
lines changed

8 files changed

+296
-149
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
- {shards: false}
2121
- {shards: true}
2222
- {shards: '0.12.0', crystal: '0.35.1'}
23+
- {shards: '0.14', crystal: '1.2'}
2324
- {shards: latest, crystal: latest}
2425
- {shards: nightly, crystal: nightly}
2526
exclude:
2627
- os: windows-latest
2728
config: {shards: '0.12.0', crystal: '0.35.1'}
29+
- os: windows-latest
30+
config: {shards: '0.14', crystal: '1.2'}
2831
- os: windows-latest
2932
config: {shards: latest, crystal: latest}
3033

@@ -46,31 +49,31 @@ jobs:
4649
crystal eval 'puts "test" + "ing"' | grep 'testing'
4750
- run: |
4851
'${{ steps.install.outputs.path }}/bin/crystal' --version
52+
if: ${{ runner.os != 'Windows' }}
4953
- run: |
5054
ls '${{ steps.install.outputs.path }}/src/prelude.cr'
5155
- run: |
5256
v='${{ steps.install.outputs.crystal }}'
53-
crystal --version | grep "${v:0:9}"
57+
crystal --version | grep "${v:0:9}\\b"
5458
if: ${{ runner.os != 'Windows' }}
5559
- run: |
5660
v='${{ matrix.config.crystal }}'
57-
crystal --version | grep "$v"
61+
crystal --version | grep -E "${v}\\b"
5862
if: ${{ contains(matrix.config.crystal, '.') }}
5963
- run: |
60-
crystal eval 'require "openssl"; require "yaml"; require "xml"; require "big"'
61-
if: ${{ runner.os != 'Windows' }}
64+
crystal eval 'require "yaml"; require "xml"; require "big"; require "openssl"'
6265
6366
- run: |
6467
shards --version
6568
if: ${{ !contains('false', matrix.config.shards) }}
6669
- run: |
6770
v='${{ steps.install.outputs.shards }}'
6871
v="${v#v}"
69-
shards --version | grep "${v:0:9}"
72+
shards --version | grep -E "${v:0:9}\\b"
7073
if: ${{ !contains('true|false|nightly', matrix.config.shards) }}
7174
- run: |
7275
v='${{ matrix.config.shards }}'
73-
shards --version | grep "$v"
76+
shards --version | grep -E "${v}\\b"
7477
if: ${{ contains(matrix.config.shards, '.') }}
7578
- run: |
7679
! shards --version

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88

99
schedule:
10-
- cron: '0 6 * * 6'
10+
- cron: '0 6 * * *'
1111

1212
jobs:
1313
try:
@@ -20,11 +20,14 @@ jobs:
2020
- {shards: false}
2121
- {shards: true}
2222
- {shards: '0.12.0', crystal: '0.35.1'}
23+
- {shards: '0.14', crystal: '1.2'}
2324
- {shards: latest, crystal: latest}
2425
- {shards: nightly, crystal: nightly}
2526
exclude:
2627
- os: windows-latest
2728
config: {shards: '0.12.0', crystal: '0.35.1'}
29+
- os: windows-latest
30+
config: {shards: '0.14', crystal: '1.2'}
2831
- os: windows-latest
2932
config: {shards: latest, crystal: latest}
3033

@@ -35,7 +38,7 @@ jobs:
3538
shell: bash
3639
steps:
3740
- uses: actions/checkout@v2
38-
- run: npm install --only=prod
41+
3942
- uses: crystal-lang/install-crystal@v1
4043
with: ${{ matrix.config }}
4144
id: install
@@ -46,31 +49,31 @@ jobs:
4649
crystal eval 'puts "test" + "ing"' | grep 'testing'
4750
- run: |
4851
'${{ steps.install.outputs.path }}/bin/crystal' --version
52+
if: ${{ runner.os != 'Windows' }}
4953
- run: |
5054
ls '${{ steps.install.outputs.path }}/src/prelude.cr'
5155
- run: |
5256
v='${{ steps.install.outputs.crystal }}'
53-
crystal --version | grep "${v:0:9}"
57+
crystal --version | grep "${v:0:9}\\b"
5458
if: ${{ runner.os != 'Windows' }}
5559
- run: |
5660
v='${{ matrix.config.crystal }}'
57-
crystal --version | grep "$v"
61+
crystal --version | grep -E "${v}\\b"
5862
if: ${{ contains(matrix.config.crystal, '.') }}
5963
- run: |
60-
crystal eval 'require "openssl"; require "yaml"; require "xml"; require "big"'
61-
if: ${{ runner.os != 'Windows' }}
64+
crystal eval 'require "yaml"; require "xml"; require "big"; require "openssl"'
6265
6366
- run: |
6467
shards --version
6568
if: ${{ !contains('false', matrix.config.shards) }}
6669
- run: |
6770
v='${{ steps.install.outputs.shards }}'
6871
v="${v#v}"
69-
shards --version | grep "${v:0:9}"
72+
shards --version | grep -E "${v:0:9}\\b"
7073
if: ${{ !contains('true|false|nightly', matrix.config.shards) }}
7174
- run: |
7275
v='${{ matrix.config.shards }}'
73-
shards --version | grep "$v"
76+
shards --version | grep -E "${v}\\b"
7477
if: ${{ contains(matrix.config.shards, '.') }}
7578
- run: |
7679
! shards --version

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
- uses: actions/checkout@v2
2323
- uses: crystal-lang/install-crystal@v1
2424
with:
25-
crystal: 0.35.1
25+
crystal: 1.2
2626
- run: shards install
2727
- run: crystal spec
2828
```
@@ -56,9 +56,9 @@ Alternatively, you can use the container-based approach [as in the starter workf
5656
5757
### Inputs
5858
59-
* * **`crystal: 0.35.1`** (not supported on Windows)
59+
* * **`crystal: 1.1.0`**, **`crystal: 1.2`** (not supported on Windows)
6060

61-
Install a particular release of Crystal.
61+
Install a particular release of Crystal (if the full version is specified), or the latest patch version of a release series.
6262

6363
* **`crystal: latest`** (default; not supported on Windows)
6464

@@ -81,9 +81,9 @@ Alternatively, you can use the container-based approach [as in the starter workf
8181

8282
Build and install the latest released version of Shards.
8383

84-
* **`shards: 0.13.0`**
84+
* **`shards: 0.14.0`**, **`shards: 0.16`**
8585

86-
Build and install a particular release of Shards.
86+
Build and install a particular release of Shards (if the full version is specified), or the latest patch version of a release series.
8787

8888
* **`shards: nightly`**
8989

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ inputs:
1111
description: The directory to store Crystal in
1212
annotate:
1313
description: Display compilation and spec errors as GitHub code annotations
14-
default: true
1514
token:
1615
description: Personal access token (auto-populated)
1716
default: ${{ github.token }}

docs/configurator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- os: ubuntu-latest
5757
{%- if crystal_ver %}
5858
- os: ubuntu-latest
59-
crystal: 1.0.0
59+
crystal: 1.2
6060
{%- endif %}
6161
{%- if crystal_nightly %}
6262
- os: ubuntu-latest
@@ -73,7 +73,7 @@ jobs:
7373
os: [ubuntu-latest{% if os_mac %}, macos-latest{% endif %}{% if os_win %}, windows-latest{% endif %}]
7474
{%- endif %}
7575
{%- if crystal_nightly or crystal_ver %}
76-
crystal: [{% if crystal_ver %}1.0.0, {% endif %}latest{% if crystal_nightly %}, nightly{% endif %}]
76+
crystal: [{% if crystal_ver %}1.2, {% endif %}latest{% if crystal_nightly %}, nightly{% endif %}]
7777
{%- endif %}
7878
{%- endif %}
7979
{%- endif %}

0 commit comments

Comments
 (0)