-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This GitHub Actions workflow is designed for a CMake project running on a single platform (Ubuntu-x86). | ||
# For multi-platform testing, see the link provided. | ||
# Refer to: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml | ||
name: Run Ubuntu-x86 Test Pikachu from Python native | ||
|
||
# Trigger this workflow on push or pull request to the "feature/sub" branch | ||
on: | ||
push: | ||
branches: ["dev/attribute"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
# Define environment variables shared across jobs | ||
env: | ||
# Set the CMake build type (e.g., Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
# Jobs section defines all individual tasks for the CI workflow | ||
jobs: | ||
build: | ||
# Specify that this job should run on the latest Ubuntu environment provided by GitHub | ||
runs-on: ubuntu-latest | ||
|
||
# Define steps for this job | ||
steps: | ||
# Step 1: Check out the code from the repository | ||
- uses: actions/checkout@v4 | ||
|
||
# Step 2: Update Git submodules recursively | ||
- name: Update submodules | ||
run: | | ||
git clone --recurse-submodules https://github.com/HyperInspire/3rdparty.git | ||
# Step 3: Install necessary dependencies for building the CMake project | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update # Update package lists | ||
# Install build tools and required libraries for video processing | ||
sudo apt-get install -y build-essential libgtk-3-dev libavcodec-dev libavformat-dev libjpeg-dev libswscale-dev | ||
# Step 4: Run a separate script for CMake configuration and building | ||
- name: Download Dataset And Configure CMake | ||
# Execute a pre-existing script to handle CMake configuration and building | ||
# The script is assumed to be located at `ci/quick_test_linux_x86_usual.sh` | ||
run: bash ci/quick_test_linux_x86_usual_python_native_interface.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# This GitHub Actions workflow is designed for a CMake project running on a single platform (Ubuntu-x86). | ||
# For multi-platform testing, see the link provided. | ||
# Refer to: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml | ||
name: Run Ubuntu-x86 Sample Pikachu from Python native | ||
|
||
# Trigger this workflow on push or pull request to the "feature/sub" branch | ||
on: | ||
push: | ||
branches: ["dev/attribute"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
# Define environment variables shared across jobs | ||
env: | ||
# Set the CMake build type (e.g., Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
# Jobs section defines all individual tasks for the CI workflow | ||
jobs: | ||
build: | ||
# Specify that this job should run on the latest Ubuntu environment provided by GitHub | ||
runs-on: ubuntu-latest | ||
|
||
# Define steps for this job | ||
steps: | ||
# Step 1: Check out the code from the repository | ||
- uses: actions/checkout@v4 | ||
|
||
# Step 2: Loading python environment | ||
- name: Use Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
# Step 3: Update Git submodules recursively | ||
- name: Update submodules | ||
run: | | ||
git clone --recurse-submodules https://github.com/HyperInspire/3rdparty.git | ||
# Step 4: Install necessary dependencies for building the CMake project | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update # Update package lists | ||
# Install build tools and required libraries for video processing | ||
sudo apt-get install -y build-essential libgtk-3-dev libavcodec-dev libavformat-dev libjpeg-dev libswscale-dev | ||
# Step 5: Run a separate script for CMake configuration and building | ||
- name: Build and Run sample | ||
# Execute a pre-existing script to handle CMake configuration and building | ||
# The script is assumed to be located at `ci/quick_test_linux_x86_usual.sh` | ||
run: bash ci/quick_test_linux_x86_usual_python_native_interface.sh |