Skip to content

Commit

Permalink
python native
Browse files Browse the repository at this point in the history
  • Loading branch information
tunmx committed Jul 5, 2024
1 parent 10ac390 commit 1e129e1
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/sample_ubuntu_x86_Pikachu_python.yaml
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
51 changes: 51 additions & 0 deletions .github/workflows/test_ubuntu_x86_Pikachu_python.yaml
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

0 comments on commit 1e129e1

Please sign in to comment.