chaokunyang commented on code in PR #2888:
URL: https://github.com/apache/fory/pull/2888#discussion_r2488492248
##########
.github/workflows/build-native-release.yml:
##########
@@ -36,6 +36,37 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
+ - name: Cache Bazel binary
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/bin/bazel
+ ~/.local/bin/bazel
+ C:\bazel\bazel.exe
+ key: bazel-binary-${{ runner.os }}-${{ runner.arch }}-${{
hashFiles('.bazelversion') }}
+ restore-keys: |
+ bazel-binary-${{ runner.os }}-${{ runner.arch }}-
+ - name: Cache Bazel repository cache
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/bazel/_bazel_*/*/external
+ ~/Library/Caches/bazel/_bazel_*/*/external
+ C:\users\runneradmin\_bazel_runneradmin\*/external
+ key: bazel-repo-${{ runner.os }}-${{ runner.arch }}-${{
hashFiles('WORKSPACE', '.bazelrc', 'bazel/**') }}
+ restore-keys: |
+ bazel-repo-${{ runner.os }}-${{ runner.arch }}-
+ - name: Cache Bazel build outputs
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/bazel
+ ~/Library/Caches/bazel
+ C:\users\runneradmin\_bazel_runneradmin
+ key: bazel-build-release-native-${{ runner.os }}-${{ runner.arch
}}-${{ matrix.python-version }}-${{ hashFiles('cpp/**', 'python/**/*.pyx',
'BUILD', 'WORKSPACE') }}
+ restore-keys: |
Review Comment:
Cache build outputs is tricky, maybe we could remove `restore-keys`, and
only use exact match for `bazel-build-release-native-${{ runner.os }}-${{
runner.arch }}-${{ matrix.python-version }}-${{ hashFiles('cpp/**',
'python/**/*.pyx', 'python/**/*.pxd', 'BUILD', 'WORKSPACE') }}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]