Skip to content

Update main.yml

Update main.yml #44

Workflow file for this run

name: GitHub CI
on:
push:
branches:
pull_request:
branches:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
os-name: windows
qt-version: '5.12.10'
mingw-version: 7.3
mingw-short-version: 73
- os: ubuntu-latest
os-name: linux
qt-version: '5.12.10'
- os: macos-latest
os-name: mac
qt-version: '5.12.10'
- os: ubuntu-latest
os-name: linux
qt-version: '6.2.0'
defaults:
run:
shell: bash
steps:
- name: Configure git
run: |
git config --global core.symlinks true
git config --global core.autocrlf input
- uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt-version }}
host: ${{ matrix.os-name }}
arch: ${{ matrix.mingw-short-version != '' && ('win32_mingw' + matrix.mingw-short-version) || '' }}

Check failure on line 52 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / GitHub CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 52, Col: 17): Unexpected symbol: '+'. Located at position 52 within expression: matrix.mingw-short-version != '' && ('win32_mingw' + matrix.mingw-short-version) || '' .github/workflows/main.yml (Line: 53, Col: 18): Unexpected symbol: '+matrix.mingw-version+'.0'. Located at position 51 within expression: matrix.mingw-short-version != '' && 'tools_mingw,'+matrix.mingw-version+'.0,qt.tools.win32_mingw'+matrix.mingw-short-version+'0' || ''
tools: ${{ matrix.mingw-short-version != '' && 'tools_mingw,'+matrix.mingw-version+'.0,qt.tools.win32_mingw'+matrix.mingw-short-version+'0' || '' }}
- name: Update PATH
run: |
set -xue
cygpath -w /usr/bin >> $GITHUB_PATH
cygpath -w "${IQTA_TOOLS}/mingw${{matrix.mingw-short-version}}0_32/bin" >> $GITHUB_PATH
cygpath -w "${Qt5_Dir}/bin" >> $GITHUB_PATH
if: ${{ matrix.os-name == 'windows' }}
- name: Check available tools
run: |
set -xueo pipefail
uname -a
qmake --version
make --version
g++ --version
- name: Check translations
run: |
rm aqtinstall.log
lupdate trikCheckApp.pro
gitStatus=$(git status -s && git submodule --quiet foreach --recursive git status -s)
if [ ! -z "$gitStatus" ]
then
echo $gitStatus
echo git status must be clean
git diff
false
else
true
fi
- name: QMake
run: 'qmake trikCheckApp.pro CONFIG+=release'
- name: QMake all
timeout-minutes: 1
run: make -j $(nproc) qmake_all
- name: Make all
timeout-minutes: 10
run: make -j $(nproc) all