philips-software / amp-devcontainer

amp-devcontainer is a fully loaded devcontainer useable for, embedded, C++ or Rust development
MIT License
98 stars 4 forks source link

ci: use inline cache and ccache to speed up compilation #509

Closed rjaegers closed 1 month ago

rjaegers commented 1 month ago

Pull Request

Description of changes

Use RUN --mount in combination with GHA Cache and an action that injects that cache into the Docker build to speed up compilation.

Checklist

github-actions[bot] commented 1 month ago

πŸ¦™ MegaLinter status: βœ… SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
βœ… ACTION actionlint 15 0 0.07s
βœ… DOCKERFILE hadolint 2 0 0.52s
βœ… JSON prettier 11 0 0 0.63s
βœ… JSON v8r 10 0 4.94s
βœ… MARKDOWN markdownlint 8 0 0 1.01s
βœ… MARKDOWN markdown-table-formatter 8 0 0 0.22s
βœ… REPOSITORY checkov yes no 16.0s
βœ… REPOSITORY gitleaks yes no 0.36s
βœ… REPOSITORY git_diff yes no 0.02s
βœ… REPOSITORY grype yes no 12.41s
βœ… REPOSITORY secretlint yes no 1.23s
βœ… REPOSITORY trivy yes no 6.21s
βœ… REPOSITORY trivy-sbom yes no 0.76s
βœ… REPOSITORY trufflehog yes no 2.71s
βœ… SPELL lychee 48 0 1.7s
βœ… YAML prettier 20 0 0 0.93s
βœ… YAML v8r 20 0 17.23s
βœ… YAML yamllint 20 0 0.44s

See detailed report in MegaLinter reports

_MegaLinter is graciously provided by OX Security_

github-actions[bot] commented 1 month ago

Compressed layer size comparison

Comparing ghcr.io/philips-software/amp-devcontainer-rust:latest to ghcr.io/philips-software/amp-devcontainer-rust@sha256:319692a1e756ce87ebf63b19ad7ead70eb94d7c697b061c578114017e7792996

OS/Platform Previous Size Current Size Delta
linux/amd64 432.86M 432.87M 17.34K (+0.00%)
linux/arm64 572.09M 572.11M 21.07K (+0.00%)
github-actions[bot] commented 1 month ago

Test Results

 2 files  Β±0   2 suites  Β±0   52s :stopwatch: -1s 26 tests Β±0  26 :white_check_mark: Β±0  0 :zzz: Β±0  0 :x: Β±0  28 runsβ€Š Β±0  28 :white_check_mark: Β±0  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 5b0a3388. ± Comparison against base commit 9a86bfc1.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 1 month ago

Compressed layer size comparison

Comparing ghcr.io/philips-software/amp-devcontainer-cpp:latest to ghcr.io/philips-software/amp-devcontainer-cpp@sha256:dbf362bbfa9b3f13d068774b4acc938e267f8dc9c1fbdb2c9b00ed566b08ebb4

OS/Platform Previous Size Current Size Delta
linux/amd64 640.74M 640.77M 25.89K (+0.00%)
linux/arm64 633.10M 633.13M 21.96K (+0.00%)
sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

github-actions[bot] commented 1 month ago

Pull Request Report (#509)

Static measures

Description Value
Number of added lines 78
Number of deleted lines 25
Number of changed files 4
Number of commits 10
Number of reviews 4
Number of comments (w/o review comments) 5
Number of reviews that contains a comment to resolve 3
Number of reviews that requested a change from the author 0
Number of reviews that approved the Pull Request 1
Get the total number of participants of a Pull Request 5

Time related measures

Description Value
PR lead time (from creation to close of PR) 1.2 Days
Time that was spend on the branch before the PR was created 30 Sec
Time that was spend on the branch before the PR was merged 1.2 Days
Time to merge after last review 19.8 Hours

Status check related measures

Description Value
Total runtime for last status check run (Workflow for PR) 11.7 Min
Total time spend in last status check run on PR 3.5 Min
github-actions[bot] commented 2 weeks ago

πŸŽ‰ Hooray! The changes in this pull request went live with the release of v5.1.4 πŸŽ‰