Skip to content

Commit 03ef7cf

Browse files
committed
ci: install ccache gcc masq in /opt/ccache
- .github/workflows/python-api-test.yml: avoid sudo when installing ccache compiler masquerades by installing into /opt instead of /usr/local/opt. Signed-off-by: Aiden Woodruff <[email protected]>
1 parent 41c88bc commit 03ef7cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/python-api-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
run: |
4141
sudo apt-get update
4242
sudo apt-get install -y mpich libbz2-dev ccache
43-
sudo mkdir -p /usr/local/opt/ccache/libexec
44-
sudo ln -s $(which ccache) /usr/local/opt/ccache/libexec/gcc
45-
sudo ln -s $(which ccache) /usr/local/opt/ccache/libexec/g++
46-
sudo ln -s $(which ccache) /usr/local/opt/ccache/libexec/cc
47-
sudo ln -s $(which ccache) /usr/local/opt/ccache/libexec/c++
43+
mkdir -p /opt/ccache/libexec
44+
ln -s $(which ccache) /opt/ccache/libexec/gcc
45+
ln -s $(which ccache) /opt/ccache/libexec/g++
46+
ln -s $(which ccache) /opt/ccache/libexec/cc
47+
ln -s $(which ccache) /opt/ccache/libexec/c++
4848
pip3 install mpi4py
4949
5050
- name: ccache
@@ -63,7 +63,7 @@ jobs:
6363
run: |
6464
git clone https://github.com/swig/swig.git
6565
cd swig
66-
export PATH=/usr/local/opt/ccache/libexec:$PATH
66+
export PATH=/opt/ccache/libexec:$PATH
6767
./autogen.sh
6868
./configure --prefix=${{ github.workspace }}/libs/install
6969
make

0 commit comments

Comments
 (0)