Skip to content

[CI][Github] Add linux premerge workflow #5

[CI][Github] Add linux premerge workflow

[CI][Github] Add linux premerge workflow #5

Workflow file for this run

name: LLVM Premerge Checks
permissions:
contents: read
on:
pull_request:
paths:
- .github/workflows/premerge.yaml
jobs:
premerge-checks-linux:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
steps:
- name: Checkout LLVM
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Build and Test
run: |
modified_files=$(git diff --name-only HEAD~1...HEAD)
echo $modified_files
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
echo "$modified_dirs"