Skip to content

Commit

Permalink
Add ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 5, 2023
1 parent 660a30a commit bd713bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,17 @@ runs:
sudo ln -s $(which true) /usr/local/bin/qpdf
sudo ln -s $(which true) /usr/local/bin/checkbashisms
shell: bash

- name: Install ccache
uses: hendrikmuhs/[email protected]

- name: Use ccache for compiling R code, and parallelize
run: |
mkdir -p ~/.R
echo "CC := ccache $(CC)" >> ~/.R/Makevars
echo "CXX := ccache $(CXX)" >> ~/.R/Makevars
echo "CXX11 := ccache $(CXX11)" >> ~/.R/Makevars
echo "CXX14 := ccache $(CXX14)" >> ~/.R/Makevars
echo "CXX17 := ccache $(CXX17)" >> ~/.R/Makevars
echo "MAKEFLAGS = -j2" >> ~/.R/Makevars
shell: bash

0 comments on commit bd713bc

Please sign in to comment.