Create test2.yml #66
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
name: Windows MinGW | |
on: | |
push: | |
workflow_dispatch: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
include: | |
- qt_arch: win64_mingw81 | |
qt_ver: 6.5.0 | |
qt_tools: "tools_mingw,8.1.0-1-202004170606,qt.tools.win64_mingw810" | |
qt_tools_mingw_install: mingw810_64 | |
env: | |
targetName: CaptureStream.exe | |
steps: | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: '6.5.3' | |
host: 'windows' | |
target: 'desktop' | |
arch: 'win64_mingw' | |
tools: 'tools_mingw,qt.tools.win64_mingw810' | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Qt 6 environment configuration | |
if: ${{ startsWith( matrix.qt_ver, 6 ) }} | |
shell: pwsh | |
run: | | |
Write-Output "${{ env.Qt6_DIR }}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
Write-Output "${{ env.Qt6_DIR }}/../../Tools/${{ matrix.qt_tools_mingw_install }}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: where is qmake & where is mingw32-make | |
shell: pwsh | |
run: | | |
Get-Command -Name 'qmake' | Format-List | |
Get-Command -Name 'mingw32-make' | Format-List | |
- name: mingw-build | |
id: build | |
shell: cmd | |
run: | | |
qmake | |
mingw32-make | |
- uses: actions/checkout@v3 | |
- name: qmake | |
run: qmake -makefile | |
- name: make | |
run: make | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: CaptureStream | |
path: ./ |