Skip to content

Commit 11b01ad

Browse files
committed
unleash the CI!!!
1 parent 35e5536 commit 11b01ad

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/check-rust.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,36 +86,27 @@ jobs:
8686

8787
- name: Install dependencies
8888
run: |
89-
sudo apt update &&
90-
sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler
89+
sudo apt-get update &&
90+
sudo apt-get install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler
9191
9292
- name: Install Rust ${{ matrix.rust-branch }}
9393
uses: actions-rs/[email protected]
9494
with:
9595
toolchain: ${{ matrix.rust-branch }}
9696
profile: minimal
9797

98-
# - name: Utilize Rust shared cached
99-
# uses: Swatinem/[email protected]
100-
# with:
101-
# key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
98+
- name: Utilize Rust shared cached
99+
uses: Swatinem/[email protected]
100+
with:
101+
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
102102

103103
- name: cargo fmt
104104
run: cargo fmt --check
105105

106-
# so we don't run out of disk space!
107-
- name: cargo clean
108-
run: cargo clean
109-
110106
## TODO: maybe use `if` conditions in tests to target `--package <name>`
111-
- name: Run tests
107+
- name: cargo test
112108
# timeout-minutes: 30
113-
run: |
114-
cargo test --tests
115-
116-
# so we don't run out of disk space!
117-
- name: cargo clean
118-
run: cargo clean
109+
run: cargo test --workspace
119110

120111
- name: Run benchmarks
121112
# timeout-minutes: 30
@@ -125,6 +116,5 @@ jobs:
125116
126117
- name: Build executable
127118
# timeout-minutes: 30
128-
run: |
129-
cargo build --release
119+
run: cargo build --release
130120

0 commit comments

Comments
 (0)