Edit

kc3-lang/libxkbcommon/.github/workflows/linux.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/linux.yml
  • name: linux
    
    on: [push, pull_request]
    
    # Set permissions at the job level.
    permissions: {}
    
    jobs:
      linux:
        runs-on: ubuntu-20.04
        permissions:
          contents: read
        strategy:
          matrix:
            compiler: [clang, gcc]
        steps:
          - uses: actions/checkout@v3
            with:
              persist-credentials: false
          - uses: actions/setup-python@v4
            with:
              python-version: '3.9'
          - name: Install dependencies
            run: |
              python -m pip install --upgrade meson
              sudo apt update
              sudo apt install -y \
                doxygen libxcb-xkb-dev valgrind ninja-build \
                libwayland-dev wayland-protocols bison graphviz
          - name: Setup
            run: |
              meson setup build
            env:
              CC: ${{ matrix.compiler }}
          - name: Build
            run: |
              meson compile -C build
          - name: Test
            run:
              meson test -C build --print-errorlogs --no-suite python-tests
          - name: Test with valgrind
            run:
              meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
          - name: Upload test logs
            uses: actions/upload-artifact@v3
            if: failure()
            with:
              name: test logs
              path: |
                build/meson-logs/