Task #3905
closedTask #3862: qa: CI improvements
GitHub CI: use sccache for commits build
Description
A job with a relatively large number of commits (>10) will spend a long time on the commits build. This can possibly run faster by using sccache. Installing sccache itself takes time, at least from source, so perhaps we could use a prebuild version.
Updated by Victor Julien about 4 years ago
- Status changed from New to Assigned
- Assignee set to Jason Ish
- Priority changed from Normal to Low
- Target version set to 7.0.0-beta1
Updated by Victor Julien about 3 years ago
- Target version changed from 7.0.0-beta1 to 8.0.0-beta1
Updated by Jason Ish about 3 years ago
- Status changed from Assigned to Closed
- Target version changed from 8.0.0-beta1 to 7.0.0-beta1
This is actually done, https://github.com/OISF/suricata/commit/858ab077752478ec0df2e6312353f36860a47c52, and in master now.
We can see its actually used if you open the sccache stats in a GitHub CI build: https://github.com/OISF/suricata/runs/3575433709?check_suite_focus=true#step:13:1
Updated by Victor Julien about 3 years ago
If I'm not mistaken we use it only for the Rust code? I should be able to cache C compiler as well. In large PRs this might help a lot as well.
Updated by Jason Ish about 3 years ago
PR to use sccache for gcc as well: https://github.com/OISF/suricata/pull/6444