Skip to content

Update MediaDownloader4Windows.yml #28

Update MediaDownloader4Windows.yml

Update MediaDownloader4Windows.yml #28

name: MediaDownloader4Windows
on: push
env:
QT_VERSION: "5.15.2"
MINGW_VERSION: "win32_mingw81"
MINGW_PATH: "mingw81_32"
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
-
uses: actions/checkout@v2
-
name: Install correct version of mingw
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install mingw --version=8.1.0 -y
-
name: update env
run: echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
-
name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ env.QT_VERSION }}
arch: ${{ env.MINGW_VERSION }}
dir: "${{github.workspace}}/qt"
install-deps: "true"
host: 'windows'
target: 'desktop'
-
name: Check availability of libraries
run: |
ls ${{github.workspace}}/qt/Qt/${{ env.QT_VERSION }}/${{ env.MINGW_PATH }}/lib/
-
name: Check availability of binaries
run: |
ls ${{github.workspace}}/qt/Qt/${{ env.QT_VERSION }}/${{ env.MINGW_PATH }}/bin/
-
name: Prepend path
run: |
echo "${{github.workspace}}/qt/Qt/${{ env.QT_VERSION }}/${{ env.MINGW_PATH }}/lib" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${{github.workspace}}/qt/Qt/${{ env.QT_VERSION }}/${{ env.MINGW_PATH }}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
-
name: Check QMake, CMake and make
run: |
Write-Output (Get-Command qmake.exe).Path
qmake.exe -version
Write-Output (Get-Command cmake.exe).Path
cmake.exe -version
Write-Output (Get-Command mingw32-make.exe).Path
mingw32-make.exe -version
-
name: Configure CMake
working-directory: ${{github.workspace}}
env:
CMAKE_PREFIX_PATH: ${{env.Qt5_Dir}}
run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G "CodeBlocks - MinGW Makefiles" -B ${{github.workspace}}/build
-
name: Build Project
working-directory: ${{github.workspace}}/build
run: |
mingw32-make.exe VERBOSE=1