Skip to content

Commit

Permalink
ci: Enhance to run on different platforms; start doc builds
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Mar 22, 2024
1 parent 1334309 commit cac0963
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
57 changes: 31 additions & 26 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,16 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: configure
run: |
cmake -DCMAKE_BUILD_TYPE=Debug .
- name: make
run: VERBOSE=1 make
- name: pacakge
run: |
make package
make package_source
rm -rf ./packages/_CPack_Packages/
rm -f ./packages/*.tar.bz2
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug .
- name: Build
run: cmake --build . --parallel 7
- name: Package
run: cmake --build . --target package --target package_source
- uses: actions/upload-artifact@v2
with:
name: libosdp-ci-binaries.zip
path: ./packages/
name: libosdp-ubuntu-latest-binaries.zip
path: artifacts/

MakeBuild:
runs-on: ubuntu-latest
Expand All @@ -47,20 +42,33 @@ jobs:
- name: make
run: make V=1

Test:
DocBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: configure
run: cmake .
- name: pytest
run: |
./tests/pytest/run.sh
- name: unit-tests
- name: Install dependencies
run: |
make check-ut
apt install -y python3-sphinx
pip3 install -r doc/requirements.txt
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug .
- name: Build docs
run: cmake --build . --parallel 7 --target html_docs

Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug .
- name: Run unit-tests
run: cmake --build . --parallel 7 --target check-ut
- name: Run pytest
run: tests/pytest/run.sh

CheckPatch:
runs-on: ubuntu-latest
Expand All @@ -81,12 +89,9 @@ jobs:
with:
submodules: recursive
- name: Install pypa/build
run: |
python3 -m pip install build --user
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
pushd python
python3 -m build
run: python3 -m build python
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cross-plaform-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCONFIG_OSDP_LIB_ONLY=on .
- name: Build
run: cmake --build build --parallel 8
- name: Run unit-tests
run: cmake --build build --target check-ut
- name: Run pytest
run: tests/pytest/run.sh
- name: Pack built binaries
run: cmake --build build --target package
- name: Upload artifacts
Expand Down

0 comments on commit cac0963

Please sign in to comment.