The tests still only run on pushes or pull requests for the release branch, but having it in the main branch means we don't have to copy the tests every time we create a new release branch. Reviewed By: asl Differential Revision: https://reviews.llvm.org/D129526
40 lines
955 B
YAML
40 lines
955 B
YAML
name: libclc Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
ignore-forks: true
|
|
branches:
|
|
- 'release/**'
|
|
paths:
|
|
- 'libclc/**'
|
|
- '.github/workflows/libclc-tests.yml'
|
|
- '.github/workflows/llvm-project-tests.yml'
|
|
- '!clang/**'
|
|
- '!llvm/**'
|
|
pull_request:
|
|
ignore-forks: true
|
|
branches:
|
|
- 'release/**'
|
|
paths:
|
|
- 'libclc/**'
|
|
- '.github/workflows/libclc-tests.yml'
|
|
- '.github/workflows/llvm-project-tests.yml'
|
|
- '!clang/**'
|
|
- '!llvm/**'
|
|
|
|
concurrency:
|
|
# Skip intermediate builds: always.
|
|
# Cancel intermediate builds: only if it is a pull request build.
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
|
|
|
|
jobs:
|
|
check_libclc:
|
|
if: github.repository_owner == 'llvm'
|
|
name: Test libclc
|
|
uses: ./.github/workflows/llvm-project-tests.yml
|
|
with:
|
|
build_target: ''
|
|
projects: clang;libclc
|