Skip to content
Closed
Show file tree
Hide file tree
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
37 changes: 37 additions & 0 deletions .github/workflows/bolt-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Bolt Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'bolt/**'
- '.github/workflows/bolt-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
pull_request:
branches:
- 'main'
paths:
- 'bolt/**'
- '.github/workflows/bolt-tests.yml'
- '.github/workflows/llvm-project-tests.yml'

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-all:
if: github.repository_owner == 'llvm'
name: Build and Test
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-bolt check-lld
projects: bolt;lld;llvm
os_list: '["ubuntu-latest"]' # tests are not supported yet on Windows
36 changes: 36 additions & 0 deletions .github/workflows/flang-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Flang Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'flang/**'
- '.github/workflows/flang-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
pull_request:
branches:
- 'main'
paths:
- 'flang/**'
- '.github/workflows/flang-tests.yml'
- '.github/workflows/llvm-project-tests.yml'

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-all:
if: github.repository_owner == 'llvm'
name: Build and Test
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-flang
projects: flang;clang
6 changes: 4 additions & 2 deletions .github/workflows/lld-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- 'release/**'
- 'main'
paths:
- 'lld/**'
- '.github/workflows/lld-tests.yml'
Expand All @@ -16,6 +17,7 @@ on:
pull_request:
branches:
- 'release/**'
- 'main'
paths:
- 'lld/**'
- '.github/workflows/lld-tests.yml'
Expand All @@ -34,5 +36,5 @@ jobs:
name: Test lld
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-lld
projects: lld
build_target: check-lld check-bolt check-cross-project-tests
projects: lld;bolt;cross-project-tests
2 changes: 1 addition & 1 deletion .github/workflows/llvm-project-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
${{ inputs.extra_cmake_args }}
ninja -C "$builddir" '${{ inputs.build_target }}'
ninja -C "$builddir" ${{ inputs.build_target }}

- name: Build and Test libclc
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/llvm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
push:
branches:
- 'release/**'
- 'main'
paths:
- 'llvm/**'
- '.github/workflows/llvm-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
pull_request:
branches:
- 'release/**'
- 'main'
paths:
- 'llvm/**'
- '.github/workflows/llvm-tests.yml'
Expand All @@ -33,7 +35,7 @@ jobs:
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-all
projects: clang;lld;libclc;lldb
projects: clang-tools-extra;compiler-rt;flang;libc;lldb;openmp;cross-project-tests

abi-dump-setup:
if: github.repository_owner == 'llvm'
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/mlir-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: MLIR Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'mlir/**'
- '.github/workflows/mlir-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
pull_request:
branches:
- 'main'
paths:
- 'mlir/**'
- '.github/workflows/mlir-tests.yml'
- '.github/workflows/llvm-project-tests.yml'

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-all:
if: github.repository_owner == 'llvm'
name: Build and Test
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-mlir check-flang
projects: mlir;flang;clang