Skip to content

Commit 385e9be

Browse files
authored
Update build.yaml
1 parent 985aa0f commit 385e9be

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,24 +117,29 @@ jobs:
117117
submodules: 'true'
118118

119119
- uses: seanmiddleditch/gha-setup-ninja@master
120-
120+
121+
- uses: actions/setup-python@v4
122+
with:
123+
python-version: '3.x'
124+
121125
- uses: ilammy/msvc-dev-cmd@v1
122126
if: matrix.config.name == 'windows'
123127

124-
- name: Setup Python
125-
uses: actions/setup-python@v6
126-
with:
127-
python-version: '3.13'
128-
129128
- name: Update submodule
130129
run: |
131130
cd binaryninjaapi
132131
git fetch --tags
133132
git checkout --force ${{ matrix.version.name }}
134133
git submodule update --init --recursive
135-
134+
136135
- name: Configure CMake
137-
run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON
136+
shell: bash
137+
run: |
138+
if [[ "${{ matrix.config.name }}" == "windows" ]]; then
139+
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON -DPYTHON_COMMAND="python"
140+
else
141+
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON
142+
fi
138143
139144
- name: Build
140145
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)