|
49 | 49 | cc: clang |
50 | 50 | cxx: clang++ |
51 | 51 | publish: true |
52 | | - |
53 | | - # Qt 5.15 only supports MinGW 8.11. The `windows-latest` and `windows-2022` |
54 | | - # images bundle only 11.2. For now, we must use the older image `windows-2019`. |
55 | | - - name: Windows_MingGW |
56 | | - flavor: Debug |
57 | | - runner: windows-2022 |
58 | | - generator: MinGW Makefiles |
59 | | - qtver: 5.15.2 |
60 | | - qtdir: mingw81_64 |
61 | | - qtstr: windows desktop win64_mingw81 |
62 | | - cc: gcc |
63 | | - cxx: g++ |
64 | | - ctest_exe_args: -tap |
65 | | - |
66 | | - - name: Windows_Release |
67 | | - flavor: Release |
68 | | - runner: windows-2022 |
69 | | - generator: Visual Studio 17 2022 |
70 | | - qtver: 5.15.2 |
71 | | - qtdir: msvc2019_64 |
72 | | - qtstr: windows desktop win64_msvc2019_64 |
73 | | - ctest_exe_args: -tap |
74 | | - publish: true |
75 | | - |
76 | 52 | runs-on: ${{ matrix.runner }} |
77 | 53 | steps: |
78 | 54 | - uses: actions/checkout@v2 |
|
96 | 72 | brew ls --formula | grep -wq msgpack || brew install msgpack |
97 | 73 | brew link qt5 --force |
98 | 74 |
|
99 | | - - name: Windows - Setup |
100 | | - if: ${{ startsWith(matrix.runner, 'windows') }} |
101 | | - env: |
102 | | - QT_DIR: ${{ github.workspace }}\${{ matrix.qtver }}\${{ matrix.qtdir }} |
103 | | - run: | |
104 | | - New-Item -Path .\build -Name "build" -ItemType "directory" |
105 | | - Invoke-WebRequest https://github.com/neovim/neovim/releases/download/stable/nvim-win64.zip -OutFile nvim-win64.zip |
106 | | - Expand-Archive -Path nvim-win64.zip -DestinationPath .\build\ |
107 | | - Add-Content -Path $env:GITHUB_PATH -Value ${{ github.workspace }}\build\nvim-win64\bin\ |
108 | | - Add-Content -Path $env:GITHUB_ENV -Value "CMAKE_PREFIX_PATH=$env:QT_DIR;$env:QT_DIR\lib\cmake" |
109 | | - Add-Content -Path $env:GITHUB_PATH -Value "${{ env.qt_dir }}" |
110 | | - Add-Content -Path $env:GITHUB_PATH -Value "${{ env.qt_dir }}\bin" |
111 | | -
|
112 | | - - name: Qt Cache Restore |
113 | | - if: ${{ matrix.qtver }} |
114 | | - id: cache-qt |
115 | | - uses: actions/cache@v2 |
116 | | - with: |
117 | | - path: ${{ matrix.qtver }}\${{ matrix.qtdir }} |
118 | | - key: qt-${{ runner.os }}-${{ matrix.qtver }}-${{ matrix.qtdir }} |
119 | | - |
120 | | - - name: Qt Cache Install |
121 | | - if: ${{ matrix.qtver && steps.cache-qt.outputs.cache-hit != 'true' }} |
122 | | - run: | |
123 | | - pip install aqtinstall |
124 | | - python -m aqt install ${{ matrix.qtver }} ${{ matrix.qtstr }} |
125 | | -
|
126 | 75 | # |
127 | 76 | # Build and Test |
128 | 77 | # |
@@ -169,16 +118,6 @@ jobs: |
169 | 118 | macdeployqt ./build/bin/nvim-qt.app -dmg |
170 | 119 | mv ./build/bin/nvim-qt.dmg neovim-qt.dmg |
171 | 120 |
|
172 | | - - name: Windows - Publish |
173 | | - if: ${{ matrix.publish && startsWith(matrix.runner, 'windows') }} |
174 | | - run: | |
175 | | - cmake --build ./build --target install |
176 | | - Push-Location ${{ github.workspace }}/build |
177 | | - cpack --verbose -G WIX |
178 | | - Pop-Location |
179 | | - Compress-Archive -Path ./install -DestinationPath neovim-qt.zip |
180 | | - Move-Item -Path ./build/neovim-qt-installer.msi -Destination neovim-qt-installer.msi |
181 | | -
|
182 | 121 | - name: Upload Artifacts |
183 | 122 | if: ${{ matrix.publish }} |
184 | 123 | uses: actions/upload-artifact@v2 |
|
0 commit comments