Edit

kc3-lang/libxkbcommon/.github/workflows/windows.yml

Branch :

  • Show log

    Commit

  • Author : Rui Chen
    Date : 2024-03-13 15:29:04
    Hash : 7977880a
    Message : ci: Bump action deps to use nodejs 20 runtime Signed-off-by: Rui Chen <rui@chenrui.dev>

  • .github/workflows/windows.yml
  • name: windows
    
    on:
      push:
        branches: [ master ]
      pull_request:
        branches: [ master ]
    
    # Set permissions at the job level.
    permissions: {}
    
    jobs:
      windows:
        runs-on: windows-2022
        permissions:
          contents: read
        steps:
          - uses: actions/checkout@v4
            with:
              persist-credentials: false
          - uses: actions/setup-python@v5
            with:
              python-version: '3.12'
          - name: Install dependencies
            shell: powershell
            run: |
              python -m pip install --upgrade meson
              Invoke-WebRequest -Uri https://github.com/lexxmark/winflexbison/releases/download/v2.5.23/win_flex_bison-2.5.23.zip -OutFile win_flex_bison.zip
              Expand-Archive -Path win_flex_bison.zip -DestinationPath bin
              Write-Output ((Get-Location).ToString() + "./bin") | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
          - name: Setup
            shell: cmd
            run: |
              call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
              meson setup --backend=vs -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
          - name: Build
            shell: cmd
            run: |
              call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
              meson compile -C build
          - name: Test
            run:
              meson test -C build --print-errorlogs