Skip to content

Commit

Permalink
CI modification (#1827)
Browse files Browse the repository at this point in the history
* CI modification

* Fix label

* Add more clarity
  • Loading branch information
disa6302 authored Oct 12, 2023
1 parent b3ebbee commit 8e28d52
Show file tree
Hide file tree
Showing 6 changed files with 667 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
clang-format-check:
runs-on: macos-latest
if: github.event.pull_request.fork == false || github.event_name == 'push'
steps:
- name: Clone repository
uses: actions/checkout@v3
Expand All @@ -24,6 +25,7 @@ jobs:
bash scripts/check-clang.sh
mac-os-build-clang:
runs-on: macos-11
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
Expand Down Expand Up @@ -52,6 +54,7 @@ jobs:
./tst/webrtc_client_test
mac-os-build-gcc:
runs-on: macos-11
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
CC: gcc
CXX: g++
Expand All @@ -78,6 +81,7 @@ jobs:
./tst/webrtc_client_test
static-build-mac:
runs-on: macos-11
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 2
LDFLAGS: -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
Expand All @@ -104,6 +108,7 @@ jobs:
./tst/webrtc_client_test
linux-gcc-code-coverage:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 2
permissions:
Expand Down Expand Up @@ -134,6 +139,7 @@ jobs:
bash <(curl -s https://codecov.io/bash)
address-sanitizer:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
ASAN_OPTIONS: detect_odr_violation=0:detect_leaks=1
LSAN_OPTIONS: suppressions=../tst/suppressions/LSAN.supp
Expand Down Expand Up @@ -169,6 +175,7 @@ jobs:
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test
undefined-behavior-sanitizer:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
CC: clang
Expand Down Expand Up @@ -224,6 +231,7 @@ jobs:
# timeout --signal=SIGABRT 60m build/tst/webrtc_client_test
thread-sanitizer:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
TSAN_OPTIONS: second_deadlock_stack=1:halt_on_error=1:suppressions=../tst/suppressions/TSAN.supp
CC: clang
Expand Down Expand Up @@ -257,6 +265,7 @@ jobs:
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test
linux-gcc-4_4:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 2
CC: gcc-4.4
Expand Down Expand Up @@ -293,6 +302,7 @@ jobs:
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test
static-build-linux:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
container:
image: alpine:3.15.4
env:
Expand All @@ -317,6 +327,7 @@ jobs:
make
mbedtls-ubuntu-gcc:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 2
permissions:
Expand Down Expand Up @@ -353,6 +364,7 @@ jobs:
mbedtls-ubuntu-gcc-11:
runs-on: ubuntu-latest
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 2
permissions:
Expand Down Expand Up @@ -386,6 +398,7 @@ jobs:
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test
mbedtls-ubuntu-clang:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
CC: clang
CXX: clang++
Expand Down Expand Up @@ -417,7 +430,7 @@ jobs:
cd build
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test
sample-check:
if: github.repository == 'awslabs/amazon-kinesis-video-streams-webrtc-sdk-c'
if: github.repository == 'awslabs/amazon-kinesis-video-streams-webrtc-sdk-c' && (github.event.pull_request.fork == false || github.event_name == 'push')
runs-on: ubuntu-20.04
env:
AWS_KVS_LOG_LEVEL: 2
Expand All @@ -442,6 +455,7 @@ jobs:
./scripts/check-sample.sh
ubuntu-os-build:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 2
permissions:
Expand All @@ -468,6 +482,7 @@ jobs:
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test
windows-msvc-openssl:
runs-on: windows-2022
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
AWS_KVS_LOG_LEVEL: 1
permissions:
Expand Down Expand Up @@ -548,6 +563,7 @@ jobs:
# .github\build_windows_mbedtls.bat
arm64-cross-compilation:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
Expand All @@ -566,6 +582,7 @@ jobs:
make
linux-aarch64-cross-compilation:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
Expand All @@ -584,6 +601,7 @@ jobs:
make
arm32-cross-compilation:
runs-on: ubuntu-20.04
if: github.event.pull_request.fork == false || github.event_name == 'push'
env:
CC: arm-linux-gnueabi-gcc
CXX: arm-linux-gnueabi-g++
Expand Down
Loading

0 comments on commit 8e28d52

Please sign in to comment.