Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 844f8ca2 authored by Rafael Tonholo's avatar Rafael Tonholo
Browse files

ci: add cli-tool build check only if any of the cli tools were changed

parent 722bd28f
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -57,6 +57,23 @@ jobs:
      - name: Build App UI-catalog application in Debug mode
        run: ./gradlew :app-ui-catalog:assembleDebug

  build-cli-tools:
    name: Build CLI tools if needed
    runs-on: ubuntu-latest
    timeout-minutes: 90
    steps:
      - name: Check if CLI tools are changed
        uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
        id: changes
        with:
          filters: |
            cli_tools_changed:
              - 'cli/**'
      - name: Build CLI tools
        # run only if CLI tools were changed
        if: steps.changes.outputs.cli_tools_changed == 'true'
        run: ./gradlew buildCliTools

  lint:
    name: Quality - Lint
    runs-on: ubuntu-latest