Skip to content

Commit 0b0fea4

Browse files
committed
[#190] faster builds with debug=false and dependency caching
1 parent 16b2232 commit 0b0fea4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[profile.dev]
2+
debug = false
3+
14
[build]
25
rustflags = "--cfg unsound_local_offset -C target-cpu=native"

.github/workflows/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14+
- uses: Swatinem/rust-cache@v1
1415
- name: clippy
1516
run: cargo clippy --all
1617
- name: fmt
@@ -44,6 +45,7 @@ jobs:
4445
profile: default
4546
toolchain: stable
4647
override: true
48+
- uses: Swatinem/rust-cache@v1
4749
- name: "Check default features build on windows"
4850
uses: actions-rs/cargo@v1
4951
with:
@@ -75,4 +77,4 @@ jobs:
7577
- uses: actions/checkout@v2
7678
- uses: EmbarkStudios/cargo-deny-action@v1
7779
with:
78-
command: check ${{ matrix.checks }}
80+
command: check ${{ matrix.checks }}

0 commit comments

Comments
 (0)