File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
-
9
- workflow_dispatch :
10
8
11
9
env :
12
10
CARGO_TERM_COLOR : always
13
- RUST_VERSION : nightly-2021-04-23
14
11
15
12
jobs :
16
13
tests-antlr :
33
30
- name : Install Rust
34
31
uses : actions-rs/toolchain@v1
35
32
with :
36
- toolchain : ${{ env.RUST_VERSION }}
33
+ toolchain : stable
37
34
default : true
38
35
- name : Cache local Maven repository
39
36
uses : actions/cache@v2
@@ -62,20 +59,24 @@ jobs:
62
59
runs-on : ubuntu-latest
63
60
outputs :
64
61
new_version : ${{ steps.check_ver.outputs.new_version }}
62
+ strategy :
63
+ matrix :
64
+ rust_version : [ 1.52 , stable]
65
65
steps :
66
66
- uses : actions/checkout@v2
67
67
- name : Install Rust
68
68
uses : actions-rs/toolchain@v1
69
69
with :
70
- toolchain : ${{ env.RUST_VERSION }}
70
+ toolchain : ${{ matrix.rust_version }}
71
71
default : true
72
72
components : rustfmt
73
73
- name : Build
74
74
run : cargo build --verbose
75
75
- name : Run tests
76
76
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
79
80
- uses : actions/checkout@v2
80
81
if : ${{ github.event_name == 'push' }}
81
82
with :
91
92
echo "::set-output name=new_version::$NEW_VER"
92
93
fi
93
94
94
-
95
95
publish :
96
96
runs-on : ubuntu-latest
97
97
if : |
@@ -107,7 +107,7 @@ jobs:
107
107
- name : Install Rust
108
108
uses : actions-rs/toolchain@v1
109
109
with :
110
- toolchain : ${{ env.RUST_VERSION }}
110
+ toolchain : stable
111
111
default : true
112
112
- name : Cargo publish check
113
113
env :
You can’t perform that action at this time.
0 commit comments