Skip to content

Commit 0373be9

Browse files
committed
update CI rust versions
1 parent 1a3611f commit 0373be9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/antlr.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8-
9-
workflow_dispatch:
108

119
env:
1210
CARGO_TERM_COLOR: always
13-
RUST_VERSION: nightly-2021-04-23
1411

1512
jobs:
1613
tests-antlr:
@@ -33,7 +30,7 @@ jobs:
3330
- name: Install Rust
3431
uses: actions-rs/toolchain@v1
3532
with:
36-
toolchain: ${{ env.RUST_VERSION }}
33+
toolchain: stable
3734
default: true
3835
- name: Cache local Maven repository
3936
uses: actions/cache@v2
@@ -62,12 +59,15 @@ jobs:
6259
runs-on: ubuntu-latest
6360
outputs:
6461
new_version: ${{ steps.check_ver.outputs.new_version }}
62+
strategy:
63+
matrix:
64+
rust_version: [ 1.52 , stable]
6565
steps:
6666
- uses: actions/checkout@v2
6767
- name: Install Rust
6868
uses: actions-rs/toolchain@v1
6969
with:
70-
toolchain: ${{ env.RUST_VERSION }}
70+
toolchain: ${{ matrix.rust_version }}
7171
default: true
7272
components: rustfmt
7373
- name: Build
@@ -91,7 +91,6 @@ jobs:
9191
echo "::set-output name=new_version::$NEW_VER"
9292
fi
9393
94-
9594
publish:
9695
runs-on: ubuntu-latest
9796
if: |
@@ -107,7 +106,7 @@ jobs:
107106
- name: Install Rust
108107
uses: actions-rs/toolchain@v1
109108
with:
110-
toolchain: ${{ env.RUST_VERSION }}
109+
toolchain: stable
111110
default: true
112111
- name: Cargo publish check
113112
env:

0 commit comments

Comments
 (0)