Skip to content

fix github runner

fix github runner #8

name: MediaDownloader4Windows
on: push
env:
QT_VERSION: "5.15.2"
MINGW_VERSION: "win32_mingw81"
MINGW_PATH: "mingw81_32"
BUILD_TYPE: Release
jobs:
build:

Check failure on line 12 in .github/workflows/MediaDownloader4Windows.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/MediaDownloader4Windows.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: windows-latest
steps:
-
uses: actions/checkout@v2
# -
# name: Check mingw g++ version
# run: |
# Write-Output (Get-Command g++.exe).Path
# g++.exe --version
name: Install correct version of mingw
# uses: crazy-max/ghaction-chocolatey@v1
# with:
# args: install mingw --version=8.1.0 -y
- uses: numworks/setup-msys2@v1
with:
msystem: MINGW32
# -
# name: Check mingw directory
# run: |
# ls C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
-
name: Install Qt
uses: jurplel/install-qt-action@v2
with:
host: windows
target: "desktop"
version: ${{ env.QT_VERSION }}
arch: ${{ env.MINGW_VERSION }}
dir: "${{github.workspace}}/qt"
install-deps: "true"
-
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