39
39
- nightly
40
40
os :
41
41
- ubuntu-latest
42
- - windows-latest
43
42
- macOS-latest
44
- include :
45
- - rust : stable
46
- features : ' '
47
- - rust : beta
48
- features : ' '
49
- - rust : nightly
50
- features : ' '
51
- benches : true
52
43
runs-on : ${{ matrix.os }}
53
44
steps :
54
45
- name : Checkout
@@ -60,24 +51,16 @@ jobs:
60
51
toolchain : ${{ matrix.rust }}
61
52
override : true
62
53
components : rustfmt
63
- - name : Build only
64
- if : matrix.build-only
65
- uses : actions-rs/cargo@v1
66
- with :
67
- command : build
68
- args : ${{ matrix.features }}
69
- - name : Test
70
- if : matrix.build-only != true
71
- uses : actions-rs/cargo@v1
72
- with :
73
- command : test
74
- args : ${{ matrix.features }}
75
- - name : Test all benches
76
- if : matrix.benches && matrix.build-only != true
54
+ - name : Install protoc
55
+ if : matrix.os == 'ubuntu-latest'
56
+ run : sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
57
+ - name : Install protoc
58
+ if : matrix.os == 'macOS-latest'
59
+ run : brew install protobuf
60
+ - name : cargo test
77
61
uses : actions-rs/cargo@v1
78
62
with :
79
63
command : test
80
- args : --benches ${{ matrix.features }}
81
64
82
65
doc :
83
66
name : Build docs
@@ -91,14 +74,16 @@ jobs:
91
74
profile : minimal
92
75
toolchain : stable
93
76
override : true
94
- - name : cargo rustdoc
77
+ - name : Install protoc
78
+ run : sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
79
+ - name : cargo rustdoc -- -D rustdoc::broken_intra_doc_links
95
80
uses : actions-rs/cargo@v1
96
81
with :
97
82
command : rustdoc
98
- args : -- -D intra-doc-link-resolution-failure
83
+ args : -- -D rustdoc::broken_intra_doc_links
99
84
100
- github_container_registry_deployment :
101
- name : GitHub Container Registry deployment
85
+ docker_image :
86
+ name : Docker image
102
87
if : github.ref == 'refs/heads/main'
103
88
needs : [style, doc, test]
104
89
runs-on : ubuntu-latest
@@ -117,7 +102,7 @@ jobs:
117
102
with :
118
103
registry : ghcr.io
119
104
username : ${{ github.actor }}
120
- password : ${{ secrets.CR_PAT }}
105
+ password : ${{ github.token }}
121
106
- name : Build & push
122
107
uses : docker/build-push-action@v2
123
108
with :
0 commit comments