FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
expresscpp/.github/workflows/main.yml at master · expresscpp/expresscpp · GitHub
expresscpp
/
expresscpp
Public
Notifications
You must be signed in to change notification settings
Fork
15
Star
96
Code
Issues
5
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
expresscpp
/
.github
/
workflows
/
main.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
60 lines (48 loc) · 2.33 KB
Breadcrumbs
expresscpp
/
.github
/
workflows
/
main.yml
Copy path
File metadata and controls
60 lines (48 loc) · 2.33 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
name
:
CMake
on
:
[push]
env
:
#
Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE
:
RelWithDebInfo
jobs
:
build
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
#
os: [windows-latest, ubuntu-latest]
os
:
[ubuntu-latest]
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Upgrade Compiler
run
:
sudo apt install -y software-properties-common && sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt install -y g++-9 && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9
if
:
matrix.os == 'ubuntu-latest'
-
name
:
Install conan package manager
run
:
sudo pip install conan
if
:
matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
-
name
:
Install conan package manager
run
:
pip install conan
if
:
matrix.os == 'windows-latest'
-
name
:
Create Build Environment
#
Some projects don't allow in-source building, so create a separate build directory
#
We'll use this as our working directory for all subsequent commands
run
:
cmake -E make_directory ${{runner.workspace}}/build
-
name
:
Configure CMake
#
Use a bash shell so we can use the same syntax for environment variable
#
access regardless of the host operating system
shell
:
bash
working-directory
:
${{runner.workspace}}/build
#
Note the current convention is to use the -S and -B options here to specify source
#
and build directories, but this is only available with CMake 3.13 and higher.
#
The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run
:
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DEXPRESSCPP_USE_CONAN_DEPENDENCIES=ON
-
name
:
Build
working-directory
:
${{runner.workspace}}/build
shell
:
bash
#
Execute the build. You can specify a specific target with "--target <NAME>"
run
:
cmake --build . --config $BUILD_TYPE
#
TODO: add tests to the pipeline
#
- name: Test
#
working-directory: ${{runner.workspace}}/build
#
shell: bash
#
# Execute tests defined by the CMake configuration.
#
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
#
run: make tests && ./tests
Back
|
FazBrowse Home
|
New Git URL