-
Notifications
You must be signed in to change notification settings - Fork 6
72 lines (60 loc) · 1.84 KB
/
linux_cpp_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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