Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(ci): Use ccache instead of .ccache #11893

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -590,7 +590,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 @@ -755,7 +755,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 @@ -819,7 +819,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 @@ -907,7 +907,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 @@ -1004,7 +1004,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 @@ -1067,7 +1067,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
Loading