File tree Expand file tree Collapse file tree 4 files changed +299
-123
lines changed Expand file tree Collapse file tree 4 files changed +299
-123
lines changed Original file line number Diff line number Diff line change 1919 ~/.cargo/git/db/
2020 target/
2121 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
22- - uses : actions-rs/toolchain@v1
23- with :
24- profile : minimal
25- toolchain : stable
22+ - uses : dtolnay/rust-toolchain@stable
2623 - name : Build
2724 run : |
2825 cargo build --release
4542 ~/.cargo/git/db/
4643 target/
4744 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
48- - uses : actions-rs/ toolchain@v1
45+ - uses : dtolnay/rust- toolchain@stable
4946 with :
50- profile : minimal
51- toolchain : stable
52- target : aarch64-apple-darwin
47+ targets : aarch64-apple-darwin, x86_64-apple-darwin
5348 - name : Build x86_64
5449 run : |
5550 cargo build --release --target x86_64-apple-darwin
Original file line number Diff line number Diff line change @@ -15,26 +15,18 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - uses : actions/checkout@v3
19- - uses : actions/cache@v3
20- with :
21- path : |
22- ~/.cargo/bin/
23- ~/.cargo/registry/index/
24- ~/.cargo/registry/cache/
25- ~/.cargo/git/db/
26- target/
27- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28- - uses : actions-rs/toolchain@v1
29- with :
30- profile : minimal
31- toolchain : stable
32- component : clippy, rustfmt
33- - name : Build
34- run : cargo build --verbose
35- - name : Run tests
36- run : cargo test --verbose
37- - name : fmt
38- run : cargo fmt --all -- --check
39- - name : clippy
40- run : cargo clippy -- -D warnings
18+ - uses : actions/checkout@v3
19+ - uses : actions/cache@v3
20+ with :
21+ path : |
22+ ~/.cargo/bin/
23+ ~/.cargo/registry/index/
24+ ~/.cargo/registry/cache/
25+ ~/.cargo/git/db/
26+ target/
27+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28+ - uses : dtolnay/rust-toolchain@stable
29+ - run : cargo check
30+ - run : cargo test
31+ - run : cargo fmt --all -- --check
32+ - run : cargo clippy -- -D warnings
You can’t perform that action at this time.
0 commit comments