Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEBUGINFRA-1118: Create GitHub Actions pipeline for libGPUCounters #79

Merged
merged 6 commits into from
Jul 19, 2024
Merged
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
32 changes: 32 additions & 0 deletions .github/workflows/android-clang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build for Android with Clang using the NDK

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 21 environment
run: |
echo "export JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "export PATH=$JAVA_HOME/bin:$PATH" >> $GITHUB_ENV

- name: Use the built-in Android NDK
run: |
echo "export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/26.3.11579264" >> $GITHUB_ENV
echo "export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux/bin:$PATH" >> $GITHUB_ENV

- name: Build with Clang and Android NDK
run: |
mkdir -p build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23 ..
make
22 changes: 22 additions & 0 deletions .github/workflows/linux-clang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build for Linux with Clang

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build with Clang
run: |
mkdir -p build
cd build
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
make
22 changes: 22 additions & 0 deletions .github/workflows/linux-gcc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build for Linux with GCC

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Build with GCC
run: |
mkdir -p build
cd build
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
make