Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/pr-xplat-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,36 @@
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/**
toolchains/**
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:
Expand All @@ -50,7 +46,7 @@ jobs:
compiler: gcc
- target: linux
compiler: mingw64

steps:
- uses: VolcanusLucis/.github/.github/actions/build-cmake-project-presets@master
with:
Expand All @@ -63,6 +59,7 @@ jobs:

verify-compilation-task:
if: always()
permissions: {}
runs-on: ubuntu-latest
needs: [check-files, build]
steps:
Expand Down
Loading