Skip to content

Commit

Permalink
Propagate the Buildkite pre-merge setup to GitHub Action
Browse files Browse the repository at this point in the history
This is a WIP, the Buildkite script is .ci/generate-buildkite-pipeline-premerge
  • Loading branch information
joker-eph committed Feb 8, 2024
1 parent b1ac052 commit 6eca722
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 3 deletions.
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
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;
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

0 comments on commit 6eca722

Please sign in to comment.