Skip to content

Commit

Permalink
build(ci): use ccache instead of .ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
majetideepak committed Dec 17, 2024
1 parent 13cd515 commit eb243d8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
if: github.repository == 'facebookincubator/velox'
runs-on: 8-core-ubuntu
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
CCACHE_BASEDIR: "${{ github.workspace }}"
BINARY_DIR: "${{ github.workspace }}/benchmarks/"
LINUX_DISTRO: "ubuntu"
Expand All @@ -56,7 +56,7 @@ jobs:
uses: actions/cache/restore@v3
id: restore-cache
with:
path: ".ccache"
path: "ccache"
key: ccache-benchmark-${{ github.sha }}
restore-keys: |
ccache-benchmark-
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
uses: actions/cache/save@v3
id: cache
with:
path: ".ccache"
path: "ccache"
key: ccache-benchmark-${{ github.sha }}

- name: "Install benchmark dependencies"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build_pyvelox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ jobs:
# NEXT_VERSION=$(echo $VERSION | awk -F. -v OFS=. '{$NF++ ; print}')
echo "build_version=${VERSION}a${COMMITS_SINCE_TAG}" >> $GITHUB_OUTPUT
- run: mkdir -p .ccache
- run: mkdir -p ccache
- name: "Restore ccache"
uses: actions/cache/restore@v3
id: restore-cache
with:
path: ".ccache"
path: "ccache"
key: ccache-wheels-${{ matrix.os }}-${{ github.sha }}
restore-keys: |
ccache-wheels-${{ matrix.os }}-
Expand Down Expand Up @@ -126,28 +126,28 @@ jobs:
CIBW_MANYLINUX_X86_64_IMAGE: "ghcr.io/facebookincubator/velox-dev:torcharrow-avx"
CIBW_BEFORE_ALL_LINUX: >
mkdir -p /output &&
cp -R /host${{ github.workspace }}/.ccache /output/.ccache &&
cp -R /host${{ github.workspace }}/ccache /output/ccache &&
ccache -s
CIBW_ENVIRONMENT_PASS_LINUX: CCACHE_DIR BUILD_VERSION
CIBW_TEST_EXTRAS: "tests"
CIBW_TEST_COMMAND: "cd {project}/pyvelox && python -m unittest -v"
CIBW_TEST_SKIP: "*macos*"
CCACHE_DIR: "${{ matrix.os != 'macos-11' && '/output' || github.workspace }}/.ccache"
CCACHE_DIR: "${{ matrix.os != 'macos-11' && '/output' || github.workspace }}/ccache"
BUILD_VERSION: "${{ inputs.version || steps.version.outputs.build_version }}"
with:
output-dir: wheelhouse

- name: "Move .ccache to workspace"
- name: "Move ccache to workspace"
if: matrix.os != 'macos-11'
run: |
mkdir -p .ccache
cp -R ./wheelhouse/.ccache/* .ccache
mkdir -p ccache
cp -R ./wheelhouse/ccache/* ccache
- name: "Save ccache"
uses: actions/cache/save@v3
id: cache
with:
path: ".ccache"
path: "ccache"
key: ccache-wheels-${{ matrix.os }}-${{ github.sha }}

- name: "Rename wheel compatibility tag"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: 16-core-ubuntu
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "ubuntu"
steps:

Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
container: ghcr.io/facebookincubator/velox-dev:presto-java
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux-build-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run:
shell: bash
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache"
CCACHE_DIR: "${{ github.workspace }}/ccache"
VELOX_DEPENDENCY_SOURCE: SYSTEM
GTest_SOURCE: BUNDLED
simdjson_SOURCE: BUNDLED
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
if: ${{ github.repository == 'facebookincubator/velox' }}
name: "Ubuntu debug with resolve_dependency"
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache"
CCACHE_DIR: "${{ github.workspace }}/ccache"
USE_CLANG: "${{ inputs.use-clang && 'true' || 'false' }}"
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
env:
CCACHE_DIR: '${{ github.workspace }}/.ccache'
CCACHE_DIR: '${{ github.workspace }}/ccache'
# The arm runners have only 7GB RAM
BUILD_TYPE: "${{ matrix.os == 'macos-14' && 'Release' || 'Debug' }}"
INSTALL_PREFIX: "/tmp/deps-install"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
container: ghcr.io/facebookincubator/velox-dev:centos9
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache"
CCACHE_DIR: "${{ github.workspace }}/ccache"
LINUX_DISTRO: "ubuntu"
MAKEFLAGS: "NUM_THREADS=${{ inputs.numThreads || 16 }} MAX_HIGH_MEM_JOBS=${{ inputs.maxHighMemJobs || 8 }} MAX_LINK_JOBS=${{ inputs.maxLinkJobs || 4 }}"

Expand Down Expand Up @@ -583,7 +583,7 @@ jobs:
needs: compile
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down Expand Up @@ -713,7 +713,7 @@ jobs:
container: ghcr.io/facebookincubator/velox-dev:presto-java
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down Expand Up @@ -777,7 +777,7 @@ jobs:
timeout-minutes: 120
if: ${{ needs.compile.outputs.presto_bias == 'true' }}
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down Expand Up @@ -865,7 +865,7 @@ jobs:
timeout-minutes: 120
if: ${{ needs.compile.outputs.presto_aggregate_bias == 'true' }}
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down Expand Up @@ -962,7 +962,7 @@ jobs:
container: ghcr.io/facebookincubator/velox-dev:presto-java
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down Expand Up @@ -1025,7 +1025,7 @@ jobs:
container: ghcr.io/facebookincubator/velox-dev:presto-java
timeout-minutes: 120
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache/"
CCACHE_DIR: "${{ github.workspace }}/ccache/"
LINUX_DISTRO: "centos"
steps:

Expand Down

0 comments on commit eb243d8

Please sign in to comment.