15
15
env :
16
16
CARGO_TERM_COLOR : always
17
17
CARGO_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
18
- PROTOC_VERSION : 3.x
19
- RUST_TOOLCHAIN : 1.79.0
18
+ PROTOC_VERSION : 24.4
19
+ RUSTUP_TOOLCHAIN : stable
20
20
21
21
jobs :
22
22
lint :
23
23
name : Lint
24
24
runs-on : ubuntu-latest
25
25
26
26
steps :
27
- - name : Install Rust Toolchain
28
- uses : actions-rs/ toolchain@v1
27
+ - name : Install Rust
28
+ uses : dtolnay/rust- toolchain@master
29
29
with :
30
- toolchain : ${{ env.RUST_TOOLCHAIN }}
31
- override : true
32
- components : rustfmt, clippy
30
+ toolchain : stable
31
+ components : clippy, rustfmt
33
32
- name : Install Protoc
34
- uses : arduino/setup-protoc@v1
33
+ uses : arduino/setup-protoc@v3
35
34
with :
35
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
36
36
version : ${{ env.PROTOC_VERSION }}
37
- - uses : actions/checkout@v2
37
+ - uses : actions/checkout@v4
38
38
- name : cargo fmt
39
39
run : cargo fmt -- --check --color ${{ env.CARGO_TERM_COLOR }}
40
40
- name : cargo clippy
@@ -46,21 +46,27 @@ jobs:
46
46
runs-on : ubuntu-latest
47
47
48
48
steps :
49
- - name : Install Rust Toolchain
50
- uses : actions-rs/ toolchain@v1
49
+ - name : Install Rust
50
+ uses : dtolnay/rust- toolchain@master
51
51
with :
52
- toolchain : ${{ env.RUST_TOOLCHAIN }}
53
- override : true
54
- components : rustfmt, clippy
52
+ toolchain : stable
53
+ components : clippy, rustfmt
55
54
- name : Install Protoc
56
- uses : arduino/setup-protoc@v1
55
+ uses : arduino/setup-protoc@v3
57
56
with :
57
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
58
58
version : ${{ env.PROTOC_VERSION }}
59
- - uses : actions/checkout@v2
59
+ - uses : actions/checkout@v4
60
60
- name : Build
61
61
run : cargo build
62
62
- name : Build examples
63
- run : cargo build --examples
63
+ run : |
64
+ cd examples
65
+ cargo build --examples
66
+ - name : Build proto-gen
67
+ run : |
68
+ cd proto-gen
69
+ cargo build
64
70
- name : Run Tests
65
71
run : cargo test --all-targets
66
72
@@ -71,17 +77,17 @@ jobs:
71
77
if : startswith(github.ref, 'refs/tags/v')
72
78
73
79
steps :
74
- - name : Install Rust Toolchain
75
- uses : actions-rs/ toolchain@v1
80
+ - name : Install Rust
81
+ uses : dtolnay/rust- toolchain@master
76
82
with :
77
- toolchain : ${{ env.RUST_TOOLCHAIN }}
78
- override : true
79
- components : rustfmt, clippy
83
+ toolchain : stable
84
+ components : clippy, rustfmt
80
85
- name : Install Protoc
81
- uses : arduino/setup-protoc@v1
86
+ uses : arduino/setup-protoc@v3
82
87
with :
88
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
83
89
version : ${{ env.PROTOC_VERSION }}
84
- - uses : actions/checkout@v2
90
+ - uses : actions/checkout@v4
85
91
- name : cargo publish dapr-macros
86
92
run : cargo publish --manifest-path dapr-macros/Cargo.toml --token ${{ env.CARGO_TOKEN }}
87
93
- name : cargo publish dapr
0 commit comments