mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
39
third_party/dlpack/.github/workflows/deploy.yml
vendored
Normal file
39
third_party/dlpack/.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test_linux:
|
||||
name: Deploy Docs
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Configuring Test Environment
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install build-essential doxygen ghp-import
|
||||
python3 -m pip install -U pip wheel
|
||||
|
||||
- name: Installing dependencies
|
||||
run: |
|
||||
python3 -m pip install -r doc_requirements.txt
|
||||
|
||||
- name: Generating Docs
|
||||
run: |
|
||||
make doc
|
||||
|
||||
- name: Deploying on GitHub Pages
|
||||
run: |
|
||||
touch docs/build/.nojekyll
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||
git config --global user.email "dlpack-gh-actions-bot@nomail"
|
||||
git config --global user.name "dlpack-gh-actions-bot"
|
||||
ghp-import -m "Generate DLPack website" -b gh-pages docs/build
|
||||
git push origin gh-pages -f
|
||||
49
third_party/dlpack/.github/workflows/docs.yaml
vendored
Normal file
49
third_party/dlpack/.github/workflows/docs.yaml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
name: Build Doc
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test_linux:
|
||||
name: Linux
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Configuring Test Environment
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install build-essential doxygen
|
||||
python3 -m pip install -U pip wheel
|
||||
python3 -m pip install cmake ninja
|
||||
|
||||
python3 --version
|
||||
python3 -m pip --version
|
||||
doxygen --version
|
||||
make --version
|
||||
cmake --version
|
||||
ninja --version
|
||||
|
||||
- name: Installing dependencies
|
||||
run: |
|
||||
python3 -m pip install -r doc_requirements.txt
|
||||
|
||||
- name: Testing CMakeLists.txt
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=./install -DBUILD_DOCS=ON
|
||||
ninja
|
||||
ninja install
|
||||
|
||||
- name: Testing Makefile
|
||||
run: |
|
||||
make doc
|
||||
35
third_party/dlpack/.github/workflows/main.yaml
vendored
Normal file
35
third_party/dlpack/.github/workflows/main.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Python
|
||||
run: |
|
||||
python3 -m pip install cpplint
|
||||
- name: Setup@Ubuntu
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
sudo apt-get install -y doxygen wget graphviz unzip
|
||||
- name: Lint
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
./tests/scripts/task_lint.sh
|
||||
- name: Test
|
||||
run: |
|
||||
./tests/scripts/task_build.sh
|
||||
Reference in New Issue
Block a user