forked from MattClarkson/CMakeCatchTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (24 loc) · 987 Bytes
/
rename_and_build.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
name: Rename project using CMakeTemplateRenamer before building.
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: textbook/[email protected]
- name: Rename project, build, test
run: |
cd ..
git clone https://github.com/tdowrick/CMakeTemplateRenamer
# Renamer arguments are: Existing folder name, new folder name, new project name, project description, new namespace[instead of mp::], delete git history[Y/N], python package name (optional)
yes Y | CMakeTemplateRenamer/rename.sh CMakeCatchTemplate WorflowProject WorkflowProject "Tom's project" tp Y pyTom
cd WorkflowProject
mkdir build
cd build
cmake ..
make
cd WORKFLOWPROJECT-build/bin
# As we have renamed the project, the
./tpBasicTest
./tpCommandLineArgsTest 1
./tpMyFirstApp