Skip to content

Commit 06e8bc6

Browse files
committed
CI: restore working config
1 parent 00a43fc commit 06e8bc6

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,36 @@ on:
66
pull_request:
77
branches: [ main, master, develop ]
88

9+
env:
10+
CARGO_TERM_COLOR: always
11+
912
jobs:
1013
build:
1114
name: Build
1215
runs-on: ubuntu-latest
1316
steps:
1417
- uses: actions/checkout@v4
18+
1519
- name: Install Rust
1620
uses: dtolnay/rust-toolchain@stable
21+
22+
- name: Cache cargo registry
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.cargo/registry
26+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
27+
28+
- name: Cache cargo index
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.cargo/git
32+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
33+
34+
- name: Cache cargo build
35+
uses: actions/cache@v4
36+
with:
37+
path: target
38+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
39+
1740
- name: Build
18-
run: cargo build --release
41+
run: cargo build --release 2>&1 | head -100

0 commit comments

Comments
 (0)