Skip to content

Commit

Permalink
esp/ci: Adds GH PR workflow to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gerekon authored and andreisfr committed Oct 17, 2024
1 parent 42a4e9f commit 875857b
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/esp-clang-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Clang Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
ignore-forks: true
branches:
- '**_release_**'
paths:
- 'clang/**'
- '.github/workflows/esp-clang-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
- '!llvm/**'
pull_request:
ignore-forks: true
branches:
- '**_release_**'
paths:
- 'clang/**'
- '.github/workflows/esp-clang-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
- '!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_clang:
if: github.repository_owner == 'espressif'
name: Test clang
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-clang
projects: clang
46 changes: 46 additions & 0 deletions .github/workflows/esp-llvm-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: LLVM Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
ignore-forks: true
branches:
- '**_release_**'
paths:
- 'llvm/**'
- '.github/workflows/esp-llvm-tests.yml'
- '.github/workflows/llvm-project-tests.yml'
pull_request:
ignore-forks: true
branches:
- '**_release_**'
paths:
- 'llvm/**'
- '.github/workflows/esp-llvm-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 == 'espressif'
name: Test llvm,clang
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-all
projects: clang

check_lld:
if: github.repository_owner == 'espressif'
name: Test lld
uses: ./.github/workflows/llvm-project-tests.yml
with:
build_target: check-lld
projects: lld

0 comments on commit 875857b

Please sign in to comment.