Skip to content

Commit 882f579

Browse files
committed
migrate logging to tracing
1 parent feb5f73 commit 882f579

File tree

8 files changed

+561
-522
lines changed

8 files changed

+561
-522
lines changed

.github/workflows/ci.yml

+14-29
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,7 @@ jobs:
3939
- nightly
4040
os:
4141
- ubuntu-latest
42-
- windows-latest
4342
- macOS-latest
44-
include:
45-
- rust: stable
46-
features: ''
47-
- rust: beta
48-
features: ''
49-
- rust: nightly
50-
features: ''
51-
benches: true
5243
runs-on: ${{ matrix.os }}
5344
steps:
5445
- name: Checkout
@@ -60,24 +51,16 @@ jobs:
6051
toolchain: ${{ matrix.rust }}
6152
override: true
6253
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
7761
uses: actions-rs/cargo@v1
7862
with:
7963
command: test
80-
args: --benches ${{ matrix.features }}
8164

8265
doc:
8366
name: Build docs
@@ -91,14 +74,16 @@ jobs:
9174
profile: minimal
9275
toolchain: stable
9376
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
9580
uses: actions-rs/cargo@v1
9681
with:
9782
command: rustdoc
98-
args: -- -D intra-doc-link-resolution-failure
83+
args: -- -D rustdoc::broken_intra_doc_links
9984

100-
github_container_registry_deployment:
101-
name: GitHub Container Registry deployment
85+
docker_image:
86+
name: Docker image
10287
if: github.ref == 'refs/heads/main'
10388
needs: [style, doc, test]
10489
runs-on: ubuntu-latest
@@ -117,7 +102,7 @@ jobs:
117102
with:
118103
registry: ghcr.io
119104
username: ${{ github.actor }}
120-
password: ${{ secrets.CR_PAT }}
105+
password: ${{ github.token }}
121106
- name: Build & push
122107
uses: docker/build-push-action@v2
123108
with:

0 commit comments

Comments
 (0)