File tree Expand file tree Collapse file tree 4 files changed +28
-30
lines changed Expand file tree Collapse file tree 4 files changed +28
-30
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,16 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
name : test
18
18
steps :
19
- - uses : actions/checkout@v2
20
- - uses : actions/cache@v2
19
+ - uses : actions/checkout@v3
20
+ - uses : actions/cache@v3
21
21
with :
22
22
path : |
23
23
deps
24
24
_build
25
25
key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
26
26
restore-keys : |
27
27
${{ runner.os }}-mix-
28
- - uses : actions/cache@v2
28
+ - uses : actions/cache@v3
29
29
with :
30
30
path : |
31
31
~/.cargo/bin/
@@ -34,10 +34,10 @@ jobs:
34
34
~/.cargo/git/db/
35
35
native/ex_tokenizers/target/
36
36
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
37
- - uses : actions-rs/toolchain@v1
38
- with :
39
- toolchain : stable
40
- override : true
37
+
38
+ - name : Install Rust toolchain
39
+ uses : dtolnay/rust-toolchain@ stable
40
+
41
41
- uses : erlef/setup-beam@v1
42
42
with :
43
43
otp-version : " ${{ env.OTP_VERSION }}"
49
49
runs-on : ubuntu-latest
50
50
name : mix format
51
51
steps :
52
- - uses : actions/checkout@v2
52
+ - uses : actions/checkout@v3
53
53
- uses : erlef/setup-beam@v1
54
54
with :
55
55
otp-version : " ${{ env.OTP_VERSION }}"
Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ jobs:
18
18
deploy :
19
19
runs-on : ubuntu-latest
20
20
steps :
21
- - uses : actions/checkout@v2
22
- - uses : actions/cache@v2
21
+ - uses : actions/checkout@v3
22
+
23
+ - uses : actions/cache@v3
23
24
with :
24
25
path : |
25
26
deps
26
27
_build
27
28
key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
28
29
restore-keys : |
29
30
${{ runner.os }}-mix-
30
- - uses : actions/cache@v2
31
+
32
+ - uses : actions/cache@v3
31
33
with :
32
34
path : |
33
35
~/.cargo/bin/
@@ -36,10 +38,10 @@ jobs:
36
38
~/.cargo/git/db/
37
39
native/ex_tokenizers/target/
38
40
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39
- - uses : actions-rs/toolchain@v1
40
- with :
41
- toolchain : stable
42
- override : true
41
+
42
+ - name : Install Rust toolchain
43
+ uses : dtolnay/rust-toolchain@ stable
44
+
43
45
- uses : erlef/setup-beam@v1
44
46
with :
45
47
otp-version : " ${{ env.OTP_VERSION }}"
Original file line number Diff line number Diff line change 49
49
50
50
- name : Build the project
51
51
id : build-crate
52
-
52
+
53
53
with :
54
54
nif-version : ${{ matrix.nif }}
55
55
project-dir : " native/ex_tokenizers"
Original file line number Diff line number Diff line change 19
19
- native/ex_tokenizers/Cargo.toml
20
20
21
21
steps :
22
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v3
23
+
23
24
- uses : actions/cache@v3
24
25
with :
25
26
path : |
@@ -32,19 +33,14 @@ jobs:
32
33
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33
34
restore-keys : |
34
35
${{ runner.os }}-cargo-
35
- - uses : actions-rs/toolchain@v1
36
+
37
+ - name : Install Rust toolchain
38
+ uses : dtolnay/rust-toolchain@stable
36
39
with :
37
- profile : minimal
38
- toolchain : stable
39
- components : rustfmt, clippy
40
- override : true
40
+ components : rustfmt, clippy
41
+
41
42
- name : run rustfmt
42
- uses : actions-rs/cargo@v1
43
- with :
44
- command : fmt
45
- args : --manifest-path=${{ matrix.manifest }} --all -- --check
43
+ run : cargo fmt --manifest-path=${{ matrix.manifest }} --all -- --check
44
+
46
45
- name : run clippy
47
- uses : actions-rs/cargo@v1
48
- with :
49
- command : clippy
50
- args : --manifest-path=${{ matrix.manifest }} -- -Dwarnings
46
+ run : cargo clippy --manifest-path=${{ matrix.manifest }} -- -Dwarnings
You can’t perform that action at this time.
0 commit comments