Skip to content

Commit 8f53b0a

Browse files
committed
update path with python
1 parent e6359a2 commit 8f53b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ jobs:
9595
9696
- name: Force Python 3.11
9797
run: |
98-
sudo update-alternatives --install /usr/bin/python python /opt/hostedtoolcache/Python/3.11.13/x64/bin/python 1
99-
sudo update-alternatives --install /usr/bin/python3 python3 /opt/hostedtoolcache/Python/3.11.13/x64/bin/python 1
98+
sudo update-alternatives --install /usr/local/bin/python python /opt/hostedtoolcache/Python/3.11.13/x64/bin/python 1
99+
sudo update-alternatives --install /usr/local/bin/python3 python3 /opt/hostedtoolcache/Python/3.11.13/x64/bin/python 1
100+
echo "/usr/local/bin:$PATH" >> $GITHUB_PATH
100101
sudo update-alternatives --config python3
101102
102103
103104
- name: Downgrade GCC to version 12
104105
run: |
105106
sudo apt-get install -y gcc-12 g++-12
106-
sudo apt-get install -y python3-apt
107107
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100
108108
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
109109
gcc --version

0 commit comments

Comments
 (0)