Граф коммитов

102 Коммитов

Автор SHA1 Сообщение Дата
Keming e6df56d1de
chore(docs): bump the github script version used in GHA (#2281) 2024-11-05 16:22:57 +08:00
Mikko Lehtonen 2932b22d10
Simplify Xcode CI / Docs (#2266)
* Add `objective-c++-header` as supported language.

* Parse -ivfsstatcache

* Simplify Xcode CI / Docs

I happened to stumble upon the `C_COMPILER_LAUNCHER` Xcode attribute,
which fits the bill perfectly, so use that instead.
2024-10-07 10:21:24 +02:00
Daniele 19714edea9
docs: fix formatting in Caching (#2267) 2024-10-03 16:23:38 +02:00
Mikko Lehtonen 2debbfccf6
Implement features required by Xcode (#2257)
* Mark `-index-store-path` as Hard

Xcode sets it by default, but it can be disabled with
`COMPILER_INDEX_STORE_ENABLE=NO` Xcode build setting.

* Mark serialize-diagnostics and deps as artifacts

Xcode requires these files to be present after compiling, so they need
to be stored and restored for the build to complete.

* Update tests for the dep changes

* Add test for `-index-store-path`

* Add documentation for Xcode use

* Xcode integration test

* Add comment about wrapper script use
2024-10-02 09:46:21 +02:00
Yonas Yanfa fce4fbb6f9
Update FreeBSD docs to refer to 14.1 (#2263) 2024-09-28 11:42:46 +08:00
NyanRus 14e465ae78
Add custom zstd compression level (#2199)
* Add custom zstd compression level

* docs for SCCACHE_CACHE_ZSTD_LEVEL

* add zstd level test

* docs for zstd level that warns new cache required

* fix integration-test of zstd-compression-level
2024-07-17 10:15:27 +02:00
Charles Eckman ef52015daa
Include server_startup_timeout_ms in config docs (#2134) 2024-03-15 19:07:10 +01:00
Sylvestre Ledru cdaa9417ff
fix a typo 2024-03-04 13:26:32 +01:00
Alex Overchenko e747592356
feat: Add Memcached authentication (#2117)
* Add new env variables for memcached.
* Unify memcached endpoint env var name.
2024-03-04 15:59:37 +08:00
Alex Overchenko 677bcc8f89
feat: Rewrite Redis environment variables API (#2116)
* Actualize Redis main docs
* Actualize configuration docs
* Use both old & new Redis API for tests
2024-03-03 20:33:42 +08:00
Alex Overchenko 1366c7419f
feat: Add support to Redis cluster mode (#2113)
* Store Redis credentials via dedicated fields: for security reasons, as discussed in #2083
* Deprecate `url` usage for Redis config
2024-02-28 13:05:04 +08:00
AJIOB df520f10b4 Add expiration time parsing for the Redis 2024-02-20 12:56:41 +01:00
AJIOB 8bae3ccd08 Unify sccache _KEY_PREFIX docs & processing 2024-02-20 12:56:41 +01:00
Alex Overchenko e445b797c3
feat: Add possibility to configure key prefix (Redis, MemCached) (#2084) 2024-02-15 12:28:46 +01:00
Alex Overchenko bc4e46a87c
More Redis URLs typos fix (#2081) 2024-02-08 00:47:55 +08:00
Luiz Carvalho 6f0d3c336c
chore: update S3 docs on region (#2079) 2024-02-07 09:26:23 +01:00
Alex Overchenko e5df0e085c
Improve Redis docs (#2072) 2024-02-02 14:27:20 +01:00
Kitsu 13663f510b
Note allowed --emit metadata in rust doc (#2075) 2024-02-02 21:17:05 +08:00
Jonah Uellenberg 742d12650d
Implement read-only local cache (#2048) 2024-01-26 09:50:58 +01:00
Chojan Shang 4d8125735b
feat(cache/oss): add support for oss (#2046)
* feat(cache/oss): add support for oss

Signed-off-by: Chojan Shang <psiace@apache.org>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-01-22 14:30:16 +01:00
Sudhakar Verma 9d1696b408
feat(redis): add support for ttl, fix #1666 (#2027)
* feat(redis): add support for ttl

* chore(redis): rustfmt

* chore(redis): fix doc

* chore(redis): fix keys to cache
2024-01-12 21:29:40 +01:00
Raphaël Gomès aa20391f22 Only activate direct mode by default for local
45386750a4 reverted my initial change.

This re-enables direct mode by default, making sure only the disk
cache is affected. There may still be an issue with Windows, but
details are sparse and no reproduction has been found yet.
2023-11-23 09:13:36 +01:00
Sylvestre Ledru 45386750a4 Revert "Activate preprocessor cache mode by default"
Causes: https://github.com/mozilla/sccache/issues/1967

This reverts commit e63185b6d4.
2023-11-19 21:13:58 +01:00
Sylvestre Ledru f6fd5ddd2a Fix some typos 2023-11-14 21:51:23 +01:00
Raphaël Gomès e63185b6d4 Activate preprocessor cache mode by default
Preprocessor cache mode (or "direct mode" in ccache speak), offers a
measurable improvement for C/C++ caching.

A non-scientific test of compiling Firefox on a Ryzen 7950x with
hot caches saw this mode changing the wall time from ~48s to ~13s.
This is the overall time spent in `mach build` with the only work
needed is to recompile all C++.

As noted in the docs, this applies only to local storage.
2023-11-14 09:53:30 +01:00
Sylvestre Ledru c5d1ab4434
direct access: adjust the doc (#1935) 2023-11-06 11:44:59 +01:00
Sylvestre Ledru 7dc99ab3de
Document how to set the direct access (#1936)
@Alphare ok with you?
2023-11-06 11:44:23 +01:00
Raphaël Gomès 08aae3729f Disable direct mode if `-Wp,*` is present
We define the `-Wp,*` argument for GCC/Clang, disable direct mode
if it's present, since it's too hard to handle.

`ccache` allows `-Wp,-MD,path`, `-Wp,-MMD,path` and `-Wp,-D_define_`.
We don't handle these for now, since they need more careful attention.
2023-10-30 16:40:14 +01:00
Raphaël Gomès 2a4da7bd4c Add entry about preprocessor caching to `Caching.md` 2023-10-30 16:40:14 +01:00
Raphaël Gomès cb7913def8 Address naming issues 2023-10-30 16:40:14 +01:00
Raphaël Gomès 3c584cb7b5 Add docs for direct mode 2023-10-30 16:40:14 +01:00
Sylvestre Ledru cabf26c685 Fix typo in the doc 2023-10-24 14:51:27 +02:00
Benoit 9d7bdb0f2c feat(s3): add server side encryption 2023-10-24 14:51:27 +02:00
grembo 46a3232bd4
Update FreeBSD CI to 13.2-RELEASE (#1879)
It's not safe to run sccache-dist unit tests in parallel.
2023-09-05 13:25:17 +02:00
harryt@coretechsec 78b84557a4 Opt in rather than opt out
Flipped logic so that multi arch caching is opt in rather than opt out
2023-05-30 09:56:20 +02:00
harryt@coretechsec 7be31e83bd Added env var to disable multi arch caching
Added an environment variable SCCACHE_NOCACHE_MULTIARCH to allow disabling caching of multiarch compilations.
2023-05-30 09:56:20 +02:00
Tom Karwowski 80499f8732
fix grammar in GHA.md (#1765) 2023-05-19 22:44:57 +08:00
Luiz Carvalho 55b4e58bee docs(gcs): mention external accounts 2023-05-10 18:26:01 +02:00
Sylvestre Ledru 79a50d3491
Improve the doc a bit 2023-04-24 11:14:39 +02:00
AJ Schmidt 75c033046e
Make `SCCACHE_S3_NO_CREDENTIALS` require a value of `true` (#1724) 2023-04-24 10:04:19 +02:00
Dmitry Tretyakov 86a1f1ad6f Support authentication in WebDAV storage (#1608)
It brings ability to provide the following type of credentials:
- username/password
- token
2023-04-20 11:52:51 +02:00
Peng-Yu Chen a7d32c6bf0 Describe the default conf file locations in docs/Configuration.md 2023-04-06 11:38:39 +02:00
temportalflux 2546b18a96 Implement Response File support in MSVC
Adds an iteration layer between the command-line argument iterator and the `ArgIter` used to compare arguments against the supported flags/options. This new layer determines if an option is a response-file directive (`@file`), and if it is, reads the options from the file before continuing to iterate over the command-line args. This requires an additional file-parsing iterating (`SplitArgs`) to split the file contents into arguments in a way which is consistent with the file format.

The `encoding` crate is used to read utf-8 (default encoding in rust) & utf-16 (big and little endian) encodings. The latter is used by `MSBuild` when generating response files.

Resources:
- [MSDN](https://docs.microsoft.com/en-us/cpp/build/reference/at-specify-a-compiler-response-file)
- [MSBuild](https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-response-files?view=vs-2019)

Contributes to #107
Based off of #192
Closes #1082
Closes #1183
2023-03-10 00:26:17 +01:00
Gilad Naaman fd2df7794f Clarify docs about units of `SCCACHE_IDLE_TIMEOUT` 2023-03-06 15:38:22 +01:00
Sylvestre Ledru de0bd73f5e
Document SCCACHE_IDLE_TIMEOUT=0 (#1610) 2023-02-17 14:08:15 +01:00
Xuanwo 64eeb966aa
feat: Add Webdav (a.k.a HTTP Cache) support (#1597)
* feat: Add Webdav (a.k.a HTTP Cache) support

Signed-off-by: Xuanwo <github@xuanwo.io>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-02-14 09:48:41 +01:00
Xuanwo 46553736b1 refactor: Migrate memcached to opendal based
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-14 11:05:10 +01:00
Xuanwo 66f44cb8e5
feat: Allow sccache keep running after hitting rate limit during check (#1557)
* feat: Allow sccache keep running after hitting rate limit during check
2023-01-12 21:41:38 +01:00
Xuanwo 0485ba7b16
feat: Introduce the default gha version (#1550) 2023-01-12 21:40:11 +01:00
Alex Kontos dbe4ed798d
Add documentation for Cloudflare R2 usage. (#1549)
* Add documentation for Cloudflare R2 usage.
2023-01-12 21:38:52 +01:00