diff --git a/.github/workflows/pr-xplat-build-test.yml b/.github/workflows/pr-xplat-build-test.yml index 6fdabcf..b60c5b3 100644 --- a/.github/workflows/pr-xplat-build-test.yml +++ b/.github/workflows/pr-xplat-build-test.yml @@ -2,24 +2,20 @@ on: pull_request: branches: [ 'master' ] - paths: - - 'libvlmath/**' - - 'toolchains/**' - - 'CMake**.**' jobs: check-files: runs-on: ubuntu-latest permissions: contents: read - outputs: + outputs: files_found: ${{ steps.found-files.outputs.files_found }} steps: - uses: actions/checkout@v4 - id: changed-files uses: tj-actions/changed-files@v47.0.1 - with: + with: base_sha: ${{ github.base_ref }} files: | libvlmath/** @@ -27,15 +23,15 @@ jobs: CMake**.** - shell: bash id: found-files - run: echo "files_found=${{ steps.changed-files.outputs.any_modified }}" >> $GITHUB_OUTPUT + run: echo files_found=${{ steps.changed-files.outputs.any_modified }} >> $GITHUB_OUTPUT build: runs-on: ubuntu-latest needs: check-files - if: ${{ needs.check-files.outputs.files_found }} + if: needs.check-files.outputs.files_found == 'true' permissions: contents: read - + strategy: fail-fast: true matrix: @@ -50,7 +46,7 @@ jobs: compiler: gcc - target: linux compiler: mingw64 - + steps: - uses: VolcanusLucis/.github/.github/actions/build-cmake-project-presets@master with: @@ -63,6 +59,7 @@ jobs: verify-compilation-task: if: always() + permissions: {} runs-on: ubuntu-latest needs: [check-files, build] steps: