Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sccache to ci #3

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down Expand Up @@ -82,6 +85,10 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run sccache-cache
uses: mozilla-actions/[email protected]


- name: Fix CRLF on Windows
if: runner.os == 'Windows'
run: git config --global core.autocrlf false
Expand Down Expand Up @@ -112,6 +119,9 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo build with devnet-prealloc feature
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: cargo build --release --features devnet-prealloc --workspace --all --tests --benches

- name: Run cargo test regular features
Expand Down Expand Up @@ -182,6 +192,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down
1 change: 1 addition & 0 deletions kaspad/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ fn get_user_approval_or_exit(message: &str, approve: bool) {
return;
}
println!("{}", message);
println!("Some useless change but causes a rebuild");
let mut input = String::new();
match std::io::stdin().read_line(&mut input) {
Ok(_) => {
Expand Down