Skip to content

Commit

Permalink
Create L1-tests.yml
Browse files Browse the repository at this point in the history
Initiaila commit
  • Loading branch information
cmuhammedrafi authored Aug 20, 2024
1 parent 09a9bf1 commit 7627ab3
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/L1-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: l1-tests

on:
push:
branches: [ main, 'sprint/**', 'release/**' ]
pull_request:
branches: [ main, 'sprint/**', 'release/**' ]

env:
BUILD_TYPE: Debug
THUNDER_REF: "5e7c0b1ed3c3dd0fc31c86518a364388dc24273b"
INTERFACES_REF: "930e01ec9aec8aa60254dec0be3beca932df63cd"

jobs:
l1-tests:
name: Build and run unit tests
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ gcc, clang ]
coverage: [ with-coverage, without-coverage ]
exclude:
- compiler: clang
coverage: with-coverage
- compiler: clang
coverage: without-coverage
- compiler: gcc
coverage: without-coverage

steps:
- name: Set up cache
# Cache Thunder/ThunderInterfaces.
# https://github.com/actions/cache
# https://docs.github.com/en/rest/actions/cache
# Modify the key if changing the list.
if: ${{ !env.ACT }}
id: cache
uses: actions/cache@v3
with:
path: |
build/Thunder
build/ThunderInterfaces
build/ThunderTools
install
!install/etc/WPEFramework/plugins
!install/usr/bin/RdkServicesL1Test
!install/usr/include/gmock
!install/usr/include/gtest
!install/usr/lib/libgmockd.a
!install/usr/lib/libgmock_maind.a
!install/usr/lib/libgtestd.a
!install/usr/lib/libgtest_maind.a
!install/usr/lib/cmake/GTest
!install/usr/lib/pkgconfig/gmock.pc
!install/usr/lib/pkgconfig/gmock_main.pc
!install/usr/lib/pkgconfig/gtest.pc
!install/usr/lib/pkgconfig/gtest_main.pc
!install/usr/lib/wpeframework/plugins
key: ${{ runner.os }}-${{ env.THUNDER_REF }}-${{ env.INTERFACES_REF }}-3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install jsonref

- name: Set up CMake
uses: jwlawson/[email protected]
with:
cmake-version: '3.16.x'

0 comments on commit 7627ab3

Please sign in to comment.