liufang-robot Linux cpp release #45
Workflow file for this run
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
name: Linux cpp release | |
run-name: ${{ github.actor }} Linux cpp release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v1.*.* | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
# contents: read | |
pages: write | |
id-token: write | |
# pull-requests: read | |
jobs: | |
linux_cpp_build_and_release: | |
strategy: | |
matrix: | |
py-version: [ 3.11 ] | |
os-version: [ ubuntu-latest ] | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ${{ matrix.os-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: check python version | |
uses: actions/setup-python@v4.3.0 | |
with: | |
python-version: ${{ matrix.py-version }} | |
- name: install component | |
run: sudo apt-get install -y build-essential doxygen graphviz python3-pip python3-dev dpkg-dev | |
- name: install dependencies | |
run: pip3 install -r requirements.txt | |
- name: configure | |
run: cmake -S. -Bbuild -DBUILD_DEB=ON -DBUILD_DOCUMENTATION=ON | |
- name: build | |
run: cmake --build build | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
# Upload entire repository | |
path: './build/html' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 | |
# - name: upload .whl | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: WheelForPython | |
# path: ./build/python/dist/*.whl | |
- name: build deb pack | |
run: cpack --config ./build/CPackConfig.cmake | |
- name: upload .deb | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DebForCPP | |
path: ./*.deb |