Skip to content

Test pyqt6

Test pyqt6 #61

Workflow file for this run

---
name: πŸͺŸ Windows
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: build (windows)
runs-on: windows-2022
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- triplet: 'x64-windows'
steps:
- name: 🐣 Checkout
uses: actions/checkout@v4
- name: 🐩 Install CMake and Ninja
uses: lukka/get-cmake@latest
- name: 🧽 Developer Command Prompt for Microsoft Visual C++
uses: ilammy/msvc-dev-cmd@v1
- name: πŸ• Checkout vcpkg
uses: actions/checkout@v4
with:
repository: microsoft/vcpkg
ref: 345ac44ab8d6a16239d3af55df9608bf725e7a48 # TODO: can we have a canonical baseline for tests?
path: vcpkg
fetch-depth: 1
- name: 🐾 Bootstrap vcpkg
shell: powershell
run: |
$PKG_SOURCE_USER = $env:GITHUB_REPOSITORY -split '/' | Select-Object -First 1
.\vcpkg\bootstrap-vcpkg.bat
.$(.\vcpkg\vcpkg.exe fetch nuget) sources add -Name ghpkg -Source "https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json" -UserName "$PKG_SOURCE_USER" -Password "${{ secrets.GITHUB_TOKEN }}" -StorePasswordInClearText
.$(.\vcpkg\vcpkg.exe fetch nuget) setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json"
echo "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json,readwrite" >> $env:GITHUB_ENV
echo "PATH=$env:VCPKG_ROOT;$env:PATH" >> $env:GITHUB_ENV
echo "VCPKG_ROOT=$env:VCPKG_ROOT" >> $env:GITHUB_ENV
- name: πŸŒ‹ Build
run: |
.\vcpkg\vcpkg.exe install --overlay-ports="${{ github.workspace }}/ports" --triplet=${{ matrix.triplet }} --x-buildtrees-root=C:/vcpkg-build py-pyqt6
- uses: m-kuhn/action-tmate@patch-1
if: failed()

Check failure on line 60 in .github/workflows/windows.yml

View workflow run for this annotation

GitHub Actions / πŸͺŸ Windows

Invalid workflow file

The workflow is not valid. .github/workflows/windows.yml (Line: 60, Col: 13): Unrecognized function: 'failed'. Located at position 1 within expression: failed()
- name: Debug nuspec
if: always()
shell: powershell
run: |
$content = Get-Content -Path "C:\vcpkg-build\py-packaging\x64-windows.nuspec"
Write-Output $content
- name: πŸ“‘ Upload logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: logs-${{ matrix.triplet }}
path: C:/vcpkg-build/**/*.log