name: CI

# This workflow run tests and build for each push

on:
  push:
    branches:
      - master

jobs:

  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Update local toolchain
        run: |
          rustup update
          rustup component add clippy
          rustup install stable

      - name: Toolchain info
        run: |
          cargo --version --verbose
          rustc --version
          cargo clippy --version

      - name: Install missing dependencies
        run: |
          sudo apt-get install -y libx11-dev xserver-xorg-dev xorg-dev

      - name: Lint
        run: |
          cargo fmt -- --check
          cargo clippy -- -D warnings

      - name: Test
        run: |
          cargo check
          cargo test --all

      - name: Build
        run: |
          cargo build --release


name: CI

# This workflow run tests and build for each push

on:
  push:
    branches:
      - master

jobs:

  build:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v2

      - name: Update local toolchain
        run: |
          rustup update
          rustup component add clippy
          rustup install stable

      - name: Toolchain info
        run: |
          cargo --version --verbose
          rustc --version
          cargo clippy --version

      - name: Install missing dependencies
        run: |
          sudo apt-get install -y libx11-dev xserver-xorg-dev xorg-dev libpango1.0 libgraphene-1.0-dev libgtk-4-bin libgtk-4-common libgtk-4-dev

      - name: Lint
        run: |
          cargo fmt -- --check
          cargo clippy -- -D warnings

      - name: Test
        run: |
          cargo check
          cargo test --all

      - name: Build
        run: |
          cargo build --release


Update gha runner to ubuntu-22.04 in attempt to access more recent version of libglib2.0
Update gha runner to ubuntu-22.04 in attempt to access more recent version of libglib2.0
