Skip to content

Commit

Permalink
Added windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
5tan committed Aug 1, 2024
1 parent 600a35c commit c4fbd48
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ jobs:
- clang++
extra_check:
- ''
gtest_root_flag:
- ''
qt6_root_flag:
- ::
include:
- os: windows-latest
compiler: g++
gtest_root_flag: "-DGTEST_ROOT=D:/gtest"
qt6_root_flag: "-DQt6_DIR=../qt6"
- os: ubuntu-latest
compiler: clazy
extra_check: clazy
Expand All @@ -52,10 +60,30 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -y install libgl1-mesa-dev qt6-base-dev libgtest-dev libasound2-dev

- name: Install Qt6 (windows)
if: matrix.os == 'windows-latest'
uses: jurplel/install-qt-action@v4
with:
version: '6.7.1'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: '${{ github.workspace }}/qt6/'
install-deps: 'true'
modules: 'qtgui qtwidgets'
archives: 'qtbase'
setup-python: 'true'
tools: 'tools_ifw tools_qtcreator,qt.tools.qtcreator'
set-env: 'true'

- name: Install dependencies (macos)
if: matrix.os == 'macos-latest'
run: brew install googletest qt6

- name: Install gtest (windows)
if: matrix.os == 'windows-latest'
uses: MarkusJx/googletest-installer@v1.1

- name: Install clang (linux)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -y install clang
Expand All @@ -77,7 +105,7 @@ jobs:
run: sudo apt-get install -y iwyu

- name: Build
run: (mkdir build && cd build && cmake .. -DCMAKE_CXX_COMPILER="${{ matrix.compiler }}" ${{matrix.extra_check_flag}} && make)
run: (mkdir build && cd build && cmake .. -DCMAKE_CXX_COMPILER="${{ matrix.compiler }}" ${{matrix.extra_check_flag}} ${{matrix.gtest_root_flag}} ${{matrix.qt6_root_flag}} && make)

- name: Test
if: matrix.extra_check == ''
Expand Down

0 comments on commit c4fbd48

Please sign in to comment.