Edit

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

Branch :

  • Browse

    Commit

  • Author : Peter Hutterer
    Date : 2022-12-07 09:41:11
    Hash : a005d06c
    Message : CI: bump a few actions to newer versions Node 12 is deprecated so let's bump the actions to newer versions that use Node 16. See https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

  • .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-2019
        permissions:
          contents: read
        steps:
          - uses: actions/checkout@v3
            with:
              persist-credentials: false
          - uses: actions/setup-python@v4
            with:
              python-version: '3.9'
          - name: Install dependencies
            shell: powershell
            run: |
              python -m pip install --upgrade meson
              Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile ninja.zip
              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
              Expand-Archive -Path ninja.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 (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
              meson setup -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
            env:
              CC: cl
          - name: Build
            shell: cmd
            run: |
              call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
              meson compile -C build
          - name: Test
            run:
              meson test -C build --print-errorlogs