aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorNikita Kozlovskiy <nikitka@gmail.com>2023-06-12 08:57:58 +0000
committernkozlovskiy <nmk@ydb.tech>2023-06-12 11:57:58 +0300
commit3826e7e962dc4328f8683d0a753159098c40daf9 (patch)
tree170e73a094791f90e3654b67851bf8836e67e179 /.github/workflows
parent274eed8957285f3b12aad2bd2ec3cdbd501a9571 (diff)
downloadydb-3826e7e962dc4328f8683d0a753159098c40daf9.tar.gz
ccache: enable basedir, slopiness, add doc
ccache: enable basedir, slopiness, add doc Pull Request resolved: #247
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_and_test_ondemand.yml1
-rw-r--r--.github/workflows/build_and_test_provisioned.yml1
-rw-r--r--.github/workflows/prepare_vm_for_build.yml21
3 files changed, 7 insertions, 16 deletions
diff --git a/.github/workflows/build_and_test_ondemand.yml b/.github/workflows/build_and_test_ondemand.yml
index 984411f65e..48d7921e00 100644
--- a/.github/workflows/build_and_test_ondemand.yml
+++ b/.github/workflows/build_and_test_ondemand.yml
@@ -94,6 +94,7 @@ jobs:
uses: ./.github/actions/build
with:
sanitizer: ${{ inputs.sanitizer }}
+ ccache_remote_path: ${{ vars.REMOTE_CACHE_URL && format('http://{0}{1}', secrets.rc_auth, vars.REMOTE_CACHE_URL) || ''}}
- name: Run tests
uses: ./.github/actions/test
with:
diff --git a/.github/workflows/build_and_test_provisioned.yml b/.github/workflows/build_and_test_provisioned.yml
index 6ef13f8a7b..5d044d1579 100644
--- a/.github/workflows/build_and_test_provisioned.yml
+++ b/.github/workflows/build_and_test_provisioned.yml
@@ -54,6 +54,7 @@ jobs:
if: inputs.run_build
with:
sanitizer: ${{ inputs.sanitizer }}
+ ccache_remote_path: ${{ vars.REMOTE_CACHE_URL && format('http://{0}{1}', secrets.rc_auth, vars.REMOTE_CACHE_URL) || ''}}
- name: Run tests
uses: ./.github/actions/test
with:
diff --git a/.github/workflows/prepare_vm_for_build.yml b/.github/workflows/prepare_vm_for_build.yml
index 778d03b1e3..24d8b3e5b7 100644
--- a/.github/workflows/prepare_vm_for_build.yml
+++ b/.github/workflows/prepare_vm_for_build.yml
@@ -35,21 +35,10 @@ jobs:
run: |
wget https://github.com/allure-framework/allurectl/releases/latest/download/allurectl_linux_386 -O ~/allurectl
chmod +x ~/allurectl
- - name: Checkout ccache
- uses: actions/checkout@v3
- with:
- repository: ccache/ccache
- path: ccache
- - name: Build ccache
+ - name: install ccache
shell: bash
run: |
- pwd
- cd ccache
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j32
- make install
- mkdir -p ~/.ccache
- echo 'remote_storage = http://${{secrets.rc_auth}}${{vars.REMOTE_CACHE_URL}}' > /root/.ccache/ccache.conf
- echo 'max_size = 50G' >> /root/.ccache/ccache.conf
- ccache -p
+ export CCACHE_VERSION=4.8.1
+ curl -L https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-x86_64.tar.xz \
+ | tar -xJ -C /usr/local/bin/ --strip-components=1 --no-same-owner ccache-${CCACHE_VERSION}-linux-x86_64/ccache
+ ls -la /usr/local/bin/ccache \ No newline at end of file