Skip to content

Commit 923f2ea

Browse files
authored
[CI Bug] Fix bug on windows python version + linux install work around
1 parent 38c9317 commit 923f2ea

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/cpp.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22+
# Set up Python 3.10 or later
23+
- name: Set up Python 3.10 (Windows)
24+
if: matrix.os == 'windows-latest'
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: '3.10'
28+
2229
# Install C++ Compiler & Build Tools
2330
- name: Set up C++ environment (Ubuntu)
2431
if: matrix.os == 'ubuntu-latest'
@@ -77,5 +84,12 @@ jobs:
7784
run: make build
7885

7986
# Install the Project with desktop shortcut
80-
- name: Install project
87+
- name: Install project (Mac/Windows)
88+
if: matrix.os != 'ubuntu-latest'
8189
run: echo "y" | make install
90+
91+
# Install the Project without desktop shortcut (Linux)
92+
# This is a work around for Linux shortcut bug
93+
- name: Install project (Linux)
94+
if: matrix.os == 'ubuntu-latest'
95+
run: echo "n" | make install

0 commit comments

Comments
 (0)