Skip to content

Commit

Permalink
update CI rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rrevenantt committed Aug 16, 2021
1 parent 1a3611f commit 6850be8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/antlr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: nightly-2021-04-23

jobs:
tests-antlr:
Expand All @@ -33,7 +30,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
toolchain: stable
default: true
- name: Cache local Maven repository
uses: actions/cache@v2
Expand Down Expand Up @@ -62,20 +59,24 @@ jobs:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.check_ver.outputs.new_version }}
strategy:
matrix:
rust_version: [ 1.48, 1.50, 1.52 , stable]
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
toolchain: ${{ matrix.rust_version }}
default: true
components: rustfmt
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Formatting
run: cargo fmt -- --check
# todo use stable formatting
# - name: Formatting
# run: cargo fmt -- --check
- uses: actions/checkout@v2
if: ${{ github.event_name == 'push' }}
with:
Expand All @@ -91,7 +92,6 @@ jobs:
echo "::set-output name=new_version::$NEW_VER"
fi
publish:
runs-on: ubuntu-latest
if: |
Expand All @@ -107,7 +107,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
toolchain: stable
default: true
- name: Cargo publish check
env:
Expand Down

0 comments on commit 6850be8

Please sign in to comment.