Skip to content

Commit

Permalink
Test by specifying the path of the visual studio generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Keidan committed Mar 6, 2022
1 parent 39cfc81 commit bd63e17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ jobs:
cmake --version
python --version
- name: Configure for debug on ${{ matrix.name }}
if: startsWith(matrix.os, 'ubuntu')
shell: bash
run: cmake -S . -B build -DDISTRIBUTION=debug -G "${{ matrix.generators }}"
- name: Configure for debug on ${{ matrix.name }}
if: startsWith(matrix.os, 'windows')
shell: bash
run: cmake -S . -B build -DDISTRIBUTION=debug -G "${{ matrix.generators }}" -DCMAKE_GENERATOR_INSTANCE="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
- name: Build debug on ${{ matrix.name }}
shell: bash
run: cmake --build build
Expand All @@ -74,8 +79,13 @@ jobs:
run: |
python test.py --file ${{ matrix.hex2binPathDebug }}
- name: Configure for release on ${{ matrix.name }}
if: startsWith(matrix.os, 'ubuntu')
shell: bash
run: cmake -S . -B build -DDISTRIBUTION=release -G "${{ matrix.generators }}"
- name: Configure for release on ${{ matrix.name }}
if: startsWith(matrix.os, 'windows')
shell: bash
run: cmake -S . -B build -DDISTRIBUTION=release -G "${{ matrix.generators }}" -DCMAKE_GENERATOR_INSTANCE="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
- name: Build release on ${{ matrix.name }}
shell: bash
run: cmake --build build
Expand Down

0 comments on commit bd63e17

Please sign in to comment.