You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-14Lines changed: 6 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,3 @@
1
-
# Archived - feel free to fork!
2
-
3
-
With apologies, I no longer use buildcache at all (ccache started working with react-native compiles shortly after I tried buildcache, so I started using ccache)
4
-
5
-
I helped document ccache integration here https://reactnative.dev/docs/build-speed#use-a-compiler-cache
6
-
7
-
As such I have no particular interest in this software and will not be maintaining it. Please feel free to fork it and continue development if you like
8
-
9
1
# Accelerate builds using buildcache
10
2
11
3
Use this GitHub Action to accelerate compilation in your GitHub workflows using [buildcache](https://github.com/mbitsnbites/buildcache)
@@ -32,7 +24,7 @@ jobs:
32
24
ios:
33
25
runs-on: macos-latest # also runs on ubuntu and windows
34
26
steps:
35
-
- uses: mikehardy/buildcache-action@v2
27
+
- uses: opencor/buildcache-action@v1
36
28
```
37
29
38
30
- 500MB cache, cache is in `$GITHUB_WORKSPACE`, just needs build integration and you're set!
@@ -41,8 +33,8 @@ When using with `actions/checkout@v2`, add this action as a step after the check
41
33
42
34
```yaml
43
35
steps:
44
-
- uses: actions/checkout@v3
45
-
- uses: mikehardy/buildcache-action@v2
36
+
- uses: actions/checkout@v4
37
+
- uses: opencor/buildcache-action@v1
46
38
```
47
39
#### Customize if you need to
48
40
@@ -60,7 +52,7 @@ jobs:
60
52
BUILDCACHE_LOG_FILE: ../buildcache.log # optional: Log where you like
61
53
runs-on: macos-latest
62
54
steps:
63
-
- uses: mikehardy/buildcache-action@v2
55
+
- uses: opencor/buildcache-action@v1
64
56
with:
65
57
cache_key: ${{ matrix.os }} # optional: separate caches maybe?
66
58
upload_buildcache_log: 'true' # optional: 100% cache misses? Find out why
@@ -115,7 +107,7 @@ The overall buid time should make it obvious, but the real test is your cache hi
115
107
116
108
To verify things are working using the default configuration, look at the output of the workflow run, expand the "Post buildcache" step and check the statistics printed out. If you you "Re-run jobs" using the GitHub Actions web interface to re-run a job a second time, you _should_ see 100% hit rate, on quite a few objects.
117
109
118
-
The output of this repositories [react-native compile test action](https://github.com/mikehardy/buildcache-action/actions/workflows/react-native-build-test.yml) are a good example.
110
+
The output of this repositories [react-native compile test action](https://github.com/opencor/buildcache-action/actions/workflows/react-native-build-test.yml) are a good example.
119
111
120
112
If you need more information, the default `BUILDCACHE_DEBUG` level of `2` is likely enough, you just need to add the `upload_buildcache_log` flag to your workflow integration and set it to `true`, then you may examine the actual output of buildcache as it worked, using the logfile attached as an artifact to the workflow run. If that still is not enough you may need a debug level of `1` See [Debugging Buildcache](https://github.com/mbitsnbites/buildcache/blob/master/doc/configuration.md#debugging) for more information.
121
113
@@ -139,7 +131,7 @@ If you experience low cache hit rates on a project with a largely static codebas
139
131
140
132
This action does these things - if they interact poorly with your project, perhaps they could be altered slightly and made to work better if you propose a PR:
141
133
142
-
- fetches the latest version of [buildcache](https://github.com/mbitsnbites/buildcache)
134
+
- fetches our own copy of [buildcache](https://github.com/opencor/buildcache-action/releases)
143
135
- installs it in your project directory as `buiildcache/bin/buildcache`
144
136
- makes symoblic links from `buildcache` to `clang` and `clang++`
145
137
- adds that directory to your `$GITHUB_PATH` for future steps
0 commit comments