FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorArray/.github/workflows/deploy-webpages.yml at master · TensorArray/TensorArray · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TensorArray
/
TensorArray
Public
forked from
Tensor-Array/Tensor-Array
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorArray
/
.github
/
workflows
/
deploy-webpages.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
88 lines (72 loc) · 3 KB
Breadcrumbs
TensorArray
/
.github
/
workflows
/
deploy-webpages.yml
Copy path
File metadata and controls
88 lines (72 loc) · 3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
#
See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name
:
CMake on a single platform (deploy web pages)
on
:
push
:
branches
:
[ "master" ]
pull_request
:
branches
:
[ "master" ]
workflow_dispatch
:
env
:
#
Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE
:
Release
#
Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions
:
contents
:
read
pages
:
write
id-token
:
write
#
Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
#
However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency
:
group
:
"
pages
"
cancel-in-progress
:
false
jobs
:
build
:
#
The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
#
You can convert this to a matrix build if you need cross-platform coverage.
#
See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on
:
ubuntu-22.04
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Setup Pages
uses
:
actions/configure-pages@v5
-
name
:
Run CUDA bash shell Ubuntu/Debian
env
:
temp
:
${{ runner.temp }}
cuda
:
"
12.9
"
run
:
|
chmod +x ${{github.workspace}}/scripts/actions/install-cuda-ubuntu.sh
${{github.workspace}}/scripts/actions/install-cuda-ubuntu.sh
shell
:
bash
-
name
:
Install Doxygen
run
:
|
sudo apt-get update
sudo apt-get install doxygen
shell
:
bash
-
name
:
Configure CMake
#
Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
#
See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run
:
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-
name
:
Build
#
Build your program with the given configuration
run
:
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
-
name
:
Test
working-directory
:
${{github.workspace}}/build
#
Execute tests defined by the CMake configuration.
#
See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run
:
ctest -C ${{env.BUILD_TYPE}}
-
name
:
Upload GitHub Pages artifact
uses
:
actions/upload-pages-artifact@v3
with
:
#
Path of the directory containing the static assets.
path
:
"
build/html/
"
#
default is _site/
deploy
:
environment
:
name
:
github-pages
url
:
${{ steps.deployment.outputs.page_url }}
runs-on
:
ubuntu-latest
needs
:
build
steps
:
-
name
:
Deploy to GitHub Pages
id
:
deployment
uses
:
actions/deploy-pages@v4
Back
|
FazBrowse Home
|
New Git URL