-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ jobs: | |
extra_check: | ||
- '' | ||
include: | ||
|
||
- os: windows-latest | ||
compiler: msvc | ||
generator_flag: '-G "Visual Studio 17 2022"' | ||
|
@@ -63,27 +62,20 @@ jobs: | |
if: matrix.os == 'macos-latest' | ||
run: brew install googletest qt6 ninja | ||
|
||
- name: Install Qt6 (windows, msvc) | ||
if: matrix.os == 'windows-latest' && matrix.compiler == 'msvc' | ||
- name: Install Qt6 (windows) | ||
if: matrix.os == 'windows-latest' | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
aqtversion: '==3.1.*' | ||
version: '6.7.1' | ||
host: 'windows' | ||
target: 'desktop' | ||
arch: 'win64_msvc2019_64' | ||
#dir: '${{ github.workspace }}/build/qt6/' | ||
arch: ${{ matrix.compiler == 'msvc' && 'win64_msvc2019_64' || matrix.compiler == 'g++' && 'win64_mingw' }} | ||
|
||
- name: Install Qt6 (windows, MinGW) | ||
if: matrix.os == 'windows-latest' && matrix.compiler == 'g++' | ||
uses: jurplel/install-qt-action@v4 | ||
- name: Install googletest | ||
uses: cvpkg/[email protected] | ||
with: | ||
aqtversion: '==3.1.*' | ||
version: '6.7.1' | ||
host: 'windows' | ||
target: 'desktop' | ||
arch: 'win64_mingw' | ||
#dir: '${{ github.workspace }}/build/qt6/' | ||
googletest_tag: 'release-1.11.0' | ||
|
||
- name: Install clang (linux) | ||
if: matrix.os == 'ubuntu-latest' && matrix.compiler == 'clang++' | ||
|
@@ -106,13 +98,13 @@ jobs: | |
run: sudo apt-get install -y iwyu | ||
|
||
- name: Configure CMake | ||
run: cmake -Bbuild . -DCMAKE_CXX_COMPILER="${{matrix.compiler}}" ${{matrix.extra_check_flag}} | ||
run: cmake -Bbuild ${{matrix.generator_flag}}. -DCMAKE_CXX_COMPILER="${{matrix.compiler}}" ${{matrix.extra_check_flag}} | ||
|
||
- name: Build | ||
run: cmake --build build | ||
|
||
- name: Test | ||
if: matrix.extra_check == '' # && matrix.os != 'windows-latest' | ||
if: matrix.extra_check == '' && matrix.os != 'windows-latest' | ||
run: ctest --test-dir build | ||
|
||
# for some reason ctest doesn't work on windows. Execute tests directly: | ||
|
@@ -121,4 +113,4 @@ jobs: | |
# run: ${{ github.workspace }}\build\tests\Debug\tests.exe | ||
# - name: Test (windows, MinGW) | ||
# if: matrix.os == 'windows-latest' && matrix.compiler == 'g++' | ||
# run: ${{ github.workspace }}\build\tests\tests.exe | ||
# run: D:\a\cxxmidi\cxxmidi\build\tests\tests.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters