Skip to content

Commit eaf511d

Browse files
committed
update CI rust versions
1 parent 1a3611f commit eaf511d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/antlr.yml

Lines changed: 9 additions & 9 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,20 +59,24 @@ 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
7474
run: cargo build --verbose
7575
- name: Run tests
7676
run: cargo test --verbose
77-
- name: Formatting
78-
run: cargo fmt -- --check
77+
# todo use stable formatting
78+
# - name: Formatting
79+
# run: cargo fmt -- --check
7980
- uses: actions/checkout@v2
8081
if: ${{ github.event_name == 'push' }}
8182
with:
@@ -91,7 +92,6 @@ jobs:
9192
echo "::set-output name=new_version::$NEW_VER"
9293
fi
9394
94-
9595
publish:
9696
runs-on: ubuntu-latest
9797
if: |
@@ -107,7 +107,7 @@ jobs:
107107
- name: Install Rust
108108
uses: actions-rs/toolchain@v1
109109
with:
110-
toolchain: ${{ env.RUST_VERSION }}
110+
toolchain: stable
111111
default: true
112112
- name: Cargo publish check
113113
env:

0 commit comments

Comments
 (0)