Skip to content

Commit

Permalink
Use sccache instead of ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 10, 2023
1 parent 3887846 commit fd5743a
Showing 1 changed file with 8 additions and 46 deletions.
54 changes: 8 additions & 46 deletions dev/tasks/matlab/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,9 @@ jobs:
uses: matlab-actions/setup-matlab@v1
with:
release: R2023a
- name: Install ccache
run: sudo apt-get install ccache
- name: Setup ccache
shell: bash
run: arrow/ci/scripts/ccache_setup.sh
- name: ccache info
id: ccache-info
shell: bash
run: echo "cache-dir=$(ccache --get-config cache_dir)" >> $GITHUB_OUTPUT
- name: Cache ccache
uses: actions/cache@v3
with:
path: ${{ '{{' }} steps.ccache-info.outputs.cache-dir {{ '}}' }}
key: matlab-ccache-ubuntu-${{ '{{' }} hashFiles('arrow/cpp/**', 'arrow/matlab/**') {{ '}}' }}
restore-keys: matlab-ccache-ubuntu-
- name: Build MATLAB Interface
env:
{{ macros.github_set_sccache_envvars()|indent(8) }}
run: arrow/ci/scripts/matlab_build.sh $(pwd)/arrow
- name: Compress into single artifact to keep directory structure
run: tar -cvzf arrow-matlab-ubuntu.tar.gz arrow/matlab/install/arrow_matlab
Expand All @@ -68,22 +55,9 @@ jobs:
uses: matlab-actions/setup-matlab@v1
with:
release: R2023a
- name: Install ccache
run: brew install ccache
- name: Setup ccache
shell: bash
run: arrow/ci/scripts/ccache_setup.sh
- name: ccache info
id: ccache-info
shell: bash
run: echo "cache-dir=$(ccache --get-config cache_dir)" >> $GITHUB_OUTPUT
- name: Cache ccache
uses: actions/cache@v3
with:
path: ${{ '{{' }} steps.ccache-info.outputs.cache-dir {{ '}}' }}
key: matlab-ccache-macos-${{ '{{' }} hashFiles('arrow/cpp/**', 'arrow/matlab/**') {{ '}}' }}
restore-keys: matlab-ccache-macos-
- name: Build MATLAB Interface
env:
{{ macros.github_set_sccache_envvars()|indent(8) }}
run: arrow/ci/scripts/matlab_build.sh $(pwd)/arrow
- name: Compress into single artifact to keep directory structure
run: tar -cvzf arrow-matlab-macos.tar.gz arrow/matlab/install/arrow_matlab
Expand All @@ -105,25 +79,13 @@ jobs:
- name: Download Timezone Database
shell: bash
run: arrow/ci/scripts/download_tz_database.sh
- name: Install ccache
shell: bash
run: arrow/ci/scripts/install_ccache.sh 4.6.3 /usr
- name: Setup ccache
- name: Install sccache
shell: bash
run: arrow/ci/scripts/ccache_setup.sh
- name: ccache info
id: ccache-info
shell: bash
run: echo "cache-dir=$(ccache --get-config cache_dir)" >> $GITHUB_OUTPUT
- name: Cache ccache
uses: actions/cache@v3
with:
path: |
${{ '{{' }} steps.ccache-info.outputs.cache-dir {{ '}}' }}
key: matlab-ccache-windows-${{ '{{' }} hashFiles('arrow/cpp/**', 'arrow/matlab/**') {{ '}}' }}
restore-keys: matlab-ccache-windows-
run: arrow/ci/scripts/install_sccache.sh pc-windows-msvc $(pwd)/sccache
- name: Build MATLAB Interface
shell: cmd
env:
{{ macros.github_set_sccache_envvars()|indent(8) }}
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
bash -c "arrow/ci/scripts/matlab_build.sh $(pwd)/arrow"
Expand Down

0 comments on commit fd5743a

Please sign in to comment.